Global options must be replicated on each command
Metadata
Current evaluation
Global options now work before or after subcommands. PR #137 completed the fix in commit 56ce5431 and was merged as 6487742f.
Resolution: closed resolved
Reason: PR #137 fixed the behavior introduced by PR #135 so `charmcraft --verbose build` and `charmcraft build --verbose` are handled identically. The fix landed in commit 56ce5431 and merged via 6487742f.
Evaluated by: mr-cal-bot
No scores available.
Issue body
IOW `charmcraft --verbose build` must be exactly the same than `charmcraft build --verbose`.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Global options now work before or after subcommands. PR #137 completed the fix in commit 56ce5431 and was merged as 6487742f. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in PR #137 (56ce5431), after PR #135 enabled global options after subcommands. Subparsers no longer overwrite global argparse values, so both option positions behave identically. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or linked pull request. The requirement for global options to function identically across all commands was not implemented. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without discussion or resolution. The requirement for global CLI options to function identically on subcommands was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or discussion. The maintainer noted that global CLI flags must work identically whether placed before or after subcommands. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned. Closed without comments or resolution, leaving the requirement for global options to work identically across subcommands unaddressed. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#137
(confidence 100%)
Corrected the global-option implementation and resolved #42.
-
Related To:
canonical/charmcraft#135
(confidence 95%)
Initially added support for global options after subcommands.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #135 Support the global options also after the command is given. | charmcraft | merged | Merged PR #135 (branch replicate-global-options, commit87777145, merge ac710131) lets global CLI options be passed after the subcommand; follow-up #137 refined the behaviour. | |
| #137 Fixed global options behaviour. | charmcraft | merged | Merged PR #137 fixes global CLI options being overwritten by argparse subparser defaults in commit 56ce5431, merged via 6487742f. |