Add @default-format: table to a command that does not define any @field-labels. Run help on that command.
Expected behavior
Help should say:
--format[=FORMAT] Format the result data. ... [default: "table"]
Actual behavior
Help says:
--format[=FORMAT] Format the result data. ... [default: "yaml"]
Note that the default from help overrides the default in @default-format when you run the command as well, so this bug effectively disables the @default-format annotation.
Steps to reproduce
Add
@default-format: table
to a command that does not define any@field-labels
. Runhelp
on that command.Expected behavior
Help should say:
Actual behavior
Help says:
Note that the default from
help
overrides the default in@default-format
when you run the command as well, so this bug effectively disables the@default-format
annotation.