consolidation / output-formatters

Apply transformations to structured data to write output in different formats.
Other
192 stars 13 forks source link

`@default-format` not correctly displayed in `help` output #54

Open greg-1-anderson opened 7 years ago

greg-1-anderson commented 7 years ago

Steps to reproduce

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.