You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should make it possible for users to define the format option on the subcommands as well or instead, so they follow a semantic of selecting the command to use, then supplying options for it:
Define --format as a reusable option and add it to the final-leaf subcommands where it applies. For example, the option should be added to dsc config set but not dsc config.
(Optional) Remove the global option, or make dsc completer error when the global option is specified.
The text was updated successfully, but these errors were encountered:
Summary of the new feature / enhancement
Currently, to define a format for the output, a user needs to add the
--format
/-f
option after the root command and before any subcommands, like:We should make it possible for users to define the format option on the subcommands as well or instead, so they follow a semantic of selecting the command to use, then supplying options for it:
Note
Additionally,
--format
doesn't apply to thedsc completer
command.Proposed technical implementation details (optional)
--format
as a reusable option and add it to the final-leaf subcommands where it applies. For example, the option should be added todsc config set
but notdsc config
.dsc completer
error when the global option is specified.The text was updated successfully, but these errors were encountered: