cli
cli copied to clipboard
A simple, fast, and fun package for building command line apps in Go
## What type of PR is this? - bug ## What this PR does / why we need it: Flags has default value, no need config every flag in config...
Also redirect errors to stderr - as per POSIX recommendations. ## What type of PR is this? - bug - feature ## What this PR does / why we need...
A common behavior for inaccurate/incomplete/auto-generated completion scripts is to complete file names when there are no completion matches, like the shells default behavior. To enable for Bash, you simply add...
Is it possible to have count the number of times a given (binary) flag is passed? This would mostly be used for verbosity flag sets, where e.g., `-v` and `-vvv`...
Is it possible to display higher-level flags in a subcommand? e.g., given: ```go app := &cli.App{ Flags: []cli.Flag{ cli.BoolFlag{ Name: "verbose, v", Usage: "be LOUD", }, }, Commands: []cli.Command{ cli.Command{...
It would be great if `cli` could offer a more verbose autocompletion on zsh similar so the following examples:  
Hello, Is there a way to limit the help line length and automatically split help of an argument or a command on multiple lines with the correct indentation?
Currently, there is a lot of duplication between the `App` and `Command` code paths. We should take the opportunity to clean this up for the next `v2` release. My thoughts...
When the `Before` function for a `subcommand` returns an `error` which satisfies `cli.ExitError`, the `help` texts are printed after error message before exiting! On returning an `error` I simply want...
This is just a suggestion, but to me it seems logical to allow global flags after the command as well, not only before it. For example, if you have a...