Allow global params after command

Bug #1993368 reported by Bryce Harrington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ppa-dev-tools
Fix Released
Low
Bryce Harrington

Bug Description

This works:

$ ./scripts/ppa --version create
ppa 0.2.1

But this does not, and probably should:

$ ./scripts/ppa create --version
usage: ppa create [-h] [-a ARCHITECTURES] ppa-name
ppa create: error: the following arguments are required: ppa-name

While it's unlikely people will expect to use --version with a command, other options like --dry-run, --verbose, and --quiet should probably work from anywhere on the command line.

Related branches

Revision history for this message
Bryce Harrington (bryce) wrote :

I've got a fix for this, that applies the global options also to each subparser. Seems to work, I'll file an MP soon.

Changed in ppa-dev-tools:
assignee: nobody → Bryce Harrington (bryce)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Bryce Harrington (bryce) wrote :
Bryce Harrington (bryce)
Changed in ppa-dev-tools:
status: In Progress → Fix Committed
Revision history for this message
Bryce Harrington (bryce) wrote :

Fixed now with the 0.4.0 release

Changed in ppa-dev-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.