-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add HelpFlag as part of VisibleFlags. #636
Conversation
Additionally also allow help command to be hidden
Any feedback on this @jszwedko ? |
Hi @harshavardhana, Apologies for the delay in review. Do you mind adding some additional details about the what this change is enabling? It also appears to alter the existing interface by changing the behavior of the |
Part of what this PR is doing is splitting
for an app whose only command is
I agree that there are backwards-compat concerns, but think we can address them with a slight tweak. Instead of re-purposing
Bob's usecase would work now (because the only way Alice could have disabled |
@wking aha, I see, thank you for providing additional context. I like your idea of splitting out the flags and deprecating |
Sorry for the ping, but are still plans to implement this? |
Any chance to get this reopened? |
@AkihiroSuda @devmattrick either of you are free to open a new PR! Please create an associated issue first though. |
Will try, #523 seems the existing issue ticket that covers this. |
While `HideHelp` hides both `help` command and `--help` flag, `HideHelpCommand` only hides `help` command and leave `--help` flag as-is. The behavior of `HideHelp` is untouched in this commit. Fix urfave#523 Replace urfave#636 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
PR: #1083 |
While `HideHelp` hides both `help` command and `--help` flag, `HideHelpCommand` only hides `help` command and leave `--help` flag as-is. The behavior of `HideHelp` is untouched in this commit. Fix urfave#523 Replace urfave#636 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
While `HideHelp` hides both `help` command and `--help` flag, `HideHelpCommand` only hides `help` command and leave `--help` flag as-is. The behavior of `HideHelp` is untouched in this commit. Fix urfave#523 Replace urfave#636 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
While `HideHelp` hides both `help` command and `--help` flag, `HideHelpCommand` only hides `help` command and leave `--help` flag as-is. The behavior of `HideHelp` is untouched in this commit. Fix urfave#523 Replace urfave#636 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
While `HideHelp` hides both `help` command and `--help` flag, `HideHelpCommand` only hides `help` command and leave `--help` flag as-is. The behavior of `HideHelp` is untouched in this commit. Fix urfave#523 Replace urfave#636 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
While `HideHelp` hides both `help` command and `--help` flag, `HideHelpCommand` only hides `help` command and leave `--help` flag as-is. The behavior of `HideHelp` is untouched in this commit. Fix urfave#523 Replace urfave#636 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
While `HideHelp` hides both `help` command and `--help` flag, `HideHelpCommand` only hides `help` command and leave `--help` flag as-is. The behavior of `HideHelp` is untouched in this commit. Fix urfave#523 Replace urfave#636 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
While `HideHelp` hides both `help` command and `--help` flag, `HideHelpCommand` only hides `help` command and leave `--help` flag as-is. The behavior of `HideHelp` is untouched in this commit. Fix urfave#523 Replace urfave#636 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Additionally also allow help command to be hidden