Stray debug print "Configuring global options" on every CLI command invocation
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 258
- Forks
- 113
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 5
Description
Description
Every task command invocation (including --dryrun and config exports) prints Configuring global options to stdout before doing anything else. It's a leftover debug print (from #152) inside the command() closure built by RunContext.cli_command, not routed through the logger or rich console, and it pollutes scripted output.
Steps to reproduce
Any executor-enabled task command, e.g.:
$ nemorun <group> <task> name=test --dryrun
Configuring global options
Dry run for ...
Expected behavior
No stray debug output — command output should only contain the framework's status output and the program's own prints.
Actual behavior
Configuring global options is unconditionally printed to stdout (nemo_run/cli/api.py, in RunContext.cli_command).
Environment
nemo-run main (b85eb67), Python 3.12, macOS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in nemo_run/cli/api.py at the RunContext.cli_command closure and reproduce an executor-enabled command such as the documented --dryrun invocation. Confirm that command output no longer begins with the stray message and contains only expected framework or program output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100