global options should be displayed per command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
New
|
Undecided
|
Unassigned |
Bug Description
I wanted to know if juju login supported some sort of show-log or debug flag, so I ran juju help login... and it didn't show those as options. Curious, I ran juju login --debug.... and it worked (showing log output).
This is bad UX. The flags for a command should be listed in the command help. If we *really* want to conserve space, we could have "see juju help global-options" at the bottom. But that's not there right now.
As it is... this is how you find out about global options (if you even know they exist... which regular users won't):
juju help login // nope, flags not there
juju help // hey, juju help commands sounds likely
juju help commands // nope, nothing about global flags
juju help // hmm, maybe juju help topics?
juju help topics // oh, hmm, what's this help global-options
juju help global-options // finally!