-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: rename flags
to options
#7170
Conversation
dffad7e
to
a607434
Compare
I would think you'd flip this, i.e., base the other one off of this one. That's because this one is much simpler to review and approve. The other one has room for interpretation and requires more discussion. |
1. Rename all the flag mentions to "options", as proposed by Helder in dagger#7107 (comment) 2. Remove the automatic [flags] append on all commands: dagger#7107 (comment) 3. Set DisableFlagsInUseLine to true for AppendedSubcommands in dagger call Signed-off-by: grouville <guillaume@dagger.io>
a607434
to
c649ae5
Compare
- Remove the COMMAND copy-paste error, where a command is not required for the watch command - Do not show the [options], as only inherited flags are shown Signed-off-by: grouville <guillaume@dagger.io>
Do not show [options] for command with only inherited flags Signed-off-by: grouville <guillaume@dagger.io>
e1ba4b8
to
99fa95c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the rename, let's continue on usage fixes in #7143
…ands Applies the recommendations from Helder on those sub commands Signed-off-by: grouville <guillaume@dagger.io>
* cli: rename flags to options 1. Rename all the flag mentions to "options", as proposed by Helder in dagger#7107 (comment) 2. Remove the automatic [flags] append on all commands: dagger#7107 (comment) 3. Set DisableFlagsInUseLine to true for AppendedSubcommands in dagger call Signed-off-by: grouville <guillaume@dagger.io> * cli: fix usage of watch command - Remove the COMMAND copy-paste error, where a command is not required for the watch command - Do not show the [options], as only inherited flags are shown Signed-off-by: grouville <guillaume@dagger.io> * cli: remove [options] for dagger version Do not show [options] for command with only inherited flags Signed-off-by: grouville <guillaume@dagger.io> * cli: fix and add <pattern>... to config views add / set / remove commands Applies the recommendations from Helder on those sub commands Signed-off-by: grouville <guillaume@dagger.io> --------- Signed-off-by: grouville <guillaume@dagger.io>
* cli: rename flags to options 1. Rename all the flag mentions to "options", as proposed by Helder in dagger#7107 (comment) 2. Remove the automatic [flags] append on all commands: dagger#7107 (comment) 3. Set DisableFlagsInUseLine to true for AppendedSubcommands in dagger call Signed-off-by: grouville <guillaume@dagger.io> * cli: fix usage of watch command - Remove the COMMAND copy-paste error, where a command is not required for the watch command - Do not show the [options], as only inherited flags are shown Signed-off-by: grouville <guillaume@dagger.io> * cli: remove [options] for dagger version Do not show [options] for command with only inherited flags Signed-off-by: grouville <guillaume@dagger.io> * cli: fix and add <pattern>... to config views add / set / remove commands Applies the recommendations from Helder on those sub commands Signed-off-by: grouville <guillaume@dagger.io> --------- Signed-off-by: grouville <guillaume@dagger.io>
* cli: rename flags to options 1. Rename all the flag mentions to "options", as proposed by Helder in dagger#7107 (comment) 2. Remove the automatic [flags] append on all commands: dagger#7107 (comment) 3. Set DisableFlagsInUseLine to true for AppendedSubcommands in dagger call Signed-off-by: grouville <guillaume@dagger.io> * cli: fix usage of watch command - Remove the COMMAND copy-paste error, where a command is not required for the watch command - Do not show the [options], as only inherited flags are shown Signed-off-by: grouville <guillaume@dagger.io> * cli: remove [options] for dagger version Do not show [options] for command with only inherited flags Signed-off-by: grouville <guillaume@dagger.io> * cli: fix and add <pattern>... to config views add / set / remove commands Applies the recommendations from Helder on those sub commands Signed-off-by: grouville <guillaume@dagger.io> --------- Signed-off-by: grouville <guillaume@dagger.io>
One of the action items discussed in #7107 (comment). It is the first one out of 3, discussed with Helder
Branched from #7143, which needs to be merged prior this one.
Update 04/24/2024
<command>
in cmd.Use #7143, as Helder suggested<pattern>
toadd
subcommand[options]
from commands with just global flags.[options]
from commands with just global flags)