← Back to issue list

Support the global options also after the command is given.

View original Github issue

Metadata

Project
charmcraft
Number
#135
Type
pull request
State
merged
Author
facundobatista
Labels
—
Created
Updated
Closed

Current evaluation

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.

Resolution: closed resolved

Reason: The PR itself was merged into master via merge commit ac710131, adding argparse handling so global options (e.g. --verbosity/--quiet/-v) are accepted after the command name, with tests updated. Maintainer facundobatista later merged #137 (56ce5431, 'Fixed global options behaviour.') which corrected remaining global-option handling, a superseding refinement rather than a revert.

Evaluated by: mr-cal-bot

No scores available.

Issue body

No description provided.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved 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.
stealth/space-bunny-alpha — closed resolved Merged #135 via ac710131, allowing global CLI options after commands; follow-up #137 further corrected global-option behavior.
stealth/space-bunny-alpha — closed resolved Merged support for using global options after the command, updating argument handling in three files (+41/−16 lines).
qwen/qwen3.6-35b-a3b — — Merged changes enabling global options to be specified after the command argument. Approved by two reviewers, modifying three files with 41 additions and 16 deletions.
qwen3.6-35b-a3b-mtp-q6 — — Merged changes allowing global options to be specified after the command. The maintainer's implementation was integrated into the main branch without additional review.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#137 (confidence 92%)

    Merged PR (commit 56ce5431) 'Fixed global options behaviour.' on branch fix-global-options, correcting subparsers overwriting global argparse values — a follow-up refinement of #135.

  • Superseded By: canonical/charmcraft#137 (confidence 70%)

    Part of the original global-option replication work was adjusted by the later merged #137 once the first implementation proved incomplete.

Related issues

Issue Project State Summary Similarity
#42 Global options must be replicated on each command charmcraft closed Global options now work before or after subcommands. PR #137 completed the fix in commit 56ce5431 and was merged as 6487742f.
84%
#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.
73%