cli icon indicating copy to clipboard operation
cli copied to clipboard

A simple, fast, and fun package for building command line apps in Go

Results 239 cli issues
Sort by recently updated
recently updated
newest added

## 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...

kind/bug
area/v2
status/user-feedback-required

Also redirect errors to stderr - as per POSIX recommendations. ## What type of PR is this? - bug - feature ## What this PR does / why we need...

kind/bug
kind/feature
area/v2
status/user-feedback-required

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...

kind/feature
help wanted
area/v2
status/confirmed

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`...

kind/feature
help wanted
area/v2
status/in-review

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{...

kind/feature
help wanted
area/v2
status/confirmed

It would be great if `cli` could offer a more verbose autocompletion on zsh similar so the following examples: ![tar_interactive](https://user-images.githubusercontent.com/1131371/35619704-2237be8c-067f-11e8-8e57-fb635da66afd.png) ![pacman_interactive](https://user-images.githubusercontent.com/1131371/35619708-253d1ce4-067f-11e8-83a1-cc16d6c82563.png)

kind/feature
help wanted
area/v2
status/confirmed

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?

kind/feature
status/claimed
area/v2

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...

area/v2
status/confirmed
kind/maintenance

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...

kind/feature
help wanted
area/v2
status/confirmed

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...

kind/feature
help wanted
area/v2
status/confirmed
pinned