Usage message [options] could be better placed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Sergio Schvezov |
Bug Description
I see this at the moment:
mark@mark-
Usage:
snapcraft [options] [--enable-geoip --no-parallel-
snapcraft [options] init
snapcraft [options] pull [<part> ...] [--enable-geoip]
snapcraft [options] build [<part> ...] [--no-parallel-
snapcraft [options] stage [<part> ...]
snapcraft [options] strip [<part> ...]
snapcraft [options] clean [<part> ...] [--step <step>]
snapcraft [options] snap [<directory> --output <snap-file>]
snapcraft [options] cleanbuild
snapcraft [options] login
snapcraft [options] logout
snapcraft [options] upload <snap-file>
snapcraft [options] list-plugins
snapcraft [options] help (topics | <plugin> | <topic>) [--devel]
snapcraft (-h | --help)
snapcraft --version
The successive [options] sections make this message much less readable. Can we drop the [options] piece up front and put explicit lists of options behind the commands, or alternatively, just document each command options in the specific help for the specific command?
In the end I would like to see:
mark@mark-
Usage:
snapcraft [--enable-geoip --no-parallel-
snapcraft init
snapcraft pull [<part> ...] [--enable-geoip]
snapcraft build [<part> ...] [--no-parallel-
snapcraft stage [<part> ...]
snapcraft strip [<part> ...]
snapcraft clean [<part> ...] [--step <step>]
snapcraft snap [<directory> --output <snap-file>]
snapcraft cleanbuild
snapcraft login
snapcraft logout
snapcraft upload <snap-file>
snapcraft list-plugins
snapcraft help (topics | <plugin> | <topic>) [--devel]
snapcraft (-h | --help)
snapcraft --version
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Sergio Schvezov (sergiusens) |
milestone: | none → 2.10 |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
We are using this http:// docopt. org/ which forces a couple of conventions on us. If this is required, we would need to migrate away from docopt