snapcraft isn't context aware in displaying help text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Callahan Kovacs |
Bug Description
When using snapcraft 7.x and attempting to build a core20 base snap, the options available from snapcraft --help are in general not available when building the snap. For example, --verbosity is not a valid option when using snapcraft 7 to build a core20 base snap:
dilyn@Ares:
Starting Snapcraft 7.1.4.post49+
Logging execution to '/root/
Usage: snapcraft [OPTIONS] COMMAND [ARGS]...
Try 'snapcraft -h' for help.
Error: No such option: --verbosity Did you mean --version?
I would expect that snapcraft --help would display context-aware options -- based on the base declared in the snapcraft.yaml for the snap I am building, it should display the flags which will govern its behavior in building said snap.
Changed in snapcraft: | |
assignee: | nobody → Callahan Kovacs (mr-cal) |
Reconfirming that this issue is still present in both latest/stable (rev. 8931) and latest/edge (rev 9020):
dilyn@Ares:~/test -> snapcraft --verbosity=verbose git0b95d4c7 dilyn/. local/state/ snapcraft/ log/snapcraft- 20230327- 115030. 405829. log'
Starting Snapcraft 7.3.1.post31+
Logging execution to '/home/
Usage: snapcraft [OPTIONS] COMMAND [ARGS]...
Try 'snapcraft -h' for help.
Error: No such option: --verbosity (Possible options: --verbose, --version)