-
-
Notifications
You must be signed in to change notification settings - Fork 425
Description
Is there an existing issue for this?
- There is no existing issue for this bug
Is this happening on an up to date version of Incus?
- This is happening on a supported version of Incus
Incus system details
incus v6.22Instance details
No response
Instance log
No response
Current behavior
Execute any incus command with --help option shows the global flags, too. For example incus list --help:
Global Flags:
--debug Show all debug messages
--force-local Force using the local unix socket
-h, --help Print help
--project Override the source project
-q, --quiet Don't show progress information
--sub-commands Use with help or --help to view sub-commands
-v, --verbose Show all information messages
--version Print version number
Addig the --sub-commands adds an extra indentation to the first line. For example: incus list --help --sub-commands:
Global Flags:
--debug Show all debug messages
--force-local Force using the local unix socket
-h, --help Print help
--project Override the source project
-q, --quiet Don't show progress information
--sub-commands Use with help or --help to view sub-commands
-v, --verbose Show all information messages
--version Print version number
Nice to have translations support for this tool, but please note that the section headers (Usage, Aliases, Examples, Available Commands, Flags, Global Flags, Additional help topics) are hard-coded in cmd/incus/main.go
Please mark these headers as translatable while fixing the bug.
Expected behavior
All output should be displayed with proper layout and localized, if translations are available.
Steps to reproduce
- Execute any
incuscommand with--helpoption and see the Global Flags section. - Execute the same command with
--help --sub-commandsoption and see the Global Flags section. The first line has an extra indentation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EasyGood for new contributorsGood for new contributors