We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Map short flags to their long versions (e.g., -f maps to --file). Not sure if we want to do this, but opening this up as it may come up.
-f
--file
Maybe something like this:
root := &cli.Command{ Flags: cli.FlagsFunc(func(f *flag.FlagSet) { f.String("file", "", "path to the tasks file") }), FlagsMetadata: []cli.FlagMetadata{ {Name: "file", Required: true, Short: "f"}, }, }
This would mean all forms would be supported:
-f file.txt --f file.txt -file file.txt --file file.txt
Then, we need to decide on how to render the usage information:
Usage: app [command] [flags] Flags: -f, --file string Path to config file (default "config.yaml")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Map short flags to their long versions (e.g.,
-f
maps to--file
). Not sure if we want to do this, but opening this up as it may come up.Maybe something like this:
This would mean all forms would be supported:
Then, we need to decide on how to render the usage information:
Usage: app [command] [flags] Flags: -f, --file string Path to config file (default "config.yaml")
The text was updated successfully, but these errors were encountered: