dearchap
dearchap
Fixed in #1987
@GwynethLlewelyn thank you for the thorough post. I'm AFK so I can't reply to each and every point right now but I'll try to get to them in the next...
@GwynethLlewelyn The AppHelpTemplate was renamed to RootCommandHelpTemplate. In addition there are CommandHelpTemplate and SubcommandHelpTemplate. Can you give me a sample of your code ?
@GwynethLlewelyn Thanks for the example. RootCommandHelpTemplate and CommandHelpTemplate are global variables so it would be prudent to set them before calling cmd.Run . You can set the CustomHelpTemplate in Command...
Yes look at the Command templates for root commands and sub commands
Not the help command itself. The help flag yes via HelpFlag public var. For help command you can do it via a hack. ``` hCmd := cmd.Command("help") hCmd...... set different...
The question is when exactly should the flag action be executed ? When a flag is set on cmd line it triggers the flag action. Without that we have no...
@blockchaindevsh I think this has come up in the past as well. How does cli "know" that 1 is not a positional argument for the command under question ? This...
@kudla The approach I would take is to have a single flag for all our values with a custom Value. You would then do something like this ``` -b 120...
Sure will do. Did you look at the GenericValue in v3 ?