cli
cli copied to clipboard
A simple, fast, and fun package for building command line apps in Go
## Checklist * [x] Are you running the latest v2 release? * [x] Did you check the manual for your release? * [x] Did you perform a search about this...
## Checklist * [x] Are you running the latest v2 release? The list of releases is [here](https://github.com/urfave/cli/releases). * [x] Did you check the manual for your release? The v2 manual...
## my urfave/cli version is _**v1.22.5**_ ## Checklist * [x] Are you running the latest v1 release? The list of releases is [here](https://github.com/urfave/cli/releases). * [x] Did you check the manual...
## my urfave/cli version is v1.22.4 ```go package main import ( "fmt" "os" "github.com/urfave/cli" ) func doThing(ctx *cli.Context) error { fmt.Println("slice-arg:", ctx.StringSlice("slice-arg")) fmt.Println("slice-arg:", ctx.StringSlice("slice-arg")) fmt.Println("slice-arg:", ctx.StringSlice("slice-arg")) return nil } func...
## my urfave/cli version is _**v1.22.4**_ ## Checklist * [X] Are you running the latest v1 release? The list of releases is [here](https://github.com/urfave/cli/releases). * [X] Did you check the manual...
## What problem does this solve? For now altsrc requires to name my flags using dots to find them into multi-level config files. I.e. to find a flag "level" in...
## What problem does this solve? We have many users of this CLI from all over the world, so it may be useful to provide translations for our error messages?...
*I’m quite not sure if this is nicely doable with golang, because we have nothing like a [procedural macro](https://doc.rust-lang.org/reference/procedural-macros.html) for it. It could be done with reflection and tags…* Anyways,...
Fix issue by adding custom replaceAll function and replacing all newlines by newlines+spaces in command usage description Some new spaces would align command usage and fulfill user needs ## What...
## What type of PR is this? - bug ## What this PR does / why we need it: When using the Subcommands, it is currently no possible to override...