dearchap

Results 306 comments of dearchap

Yes !!! GenericFlag will accept a cli.Value . https://github.com/urfave/cli/blob/main/flag_generic.go#L3

@unera Depending on whether the command is a root command or is a subcommand you could use one of the following ```ShowAppHelpAndExit``` or ```ShowSubcommandHelpAndExit```

@unera You can try using ``` ShowAppHelp(rootCommand) ```

@Aleksei-Badyaev Can you try ```PROG=myprog source ./scripts/bash_autocomplete``` ?

@Aleksei-Badyaev does the autocomplete work when you just press ```./out/bin/myprog ``` without the subcommand ?

How does one know if the user is actually passing a positional argument or subcommand ?

@iTrooz I added the feature request label. Depending on upvotes we can decide what to pursue.

@svartkanin The whole point of bool flags is to not pass an arg. Why are you passing an arg for the bool flag in the first place ?

It's not easy. What happens if 'wrong' is actually defined as a sub command ? We would then try to process it as such thinking that's what the user intended