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
var files = flag.StringSlice("files", "", "") for _, file := range *files { fmt.Println(file) }
./p --files a b c -b xxx which prints: a b c
#now if I got three files $ ls *.txt a.txt b.txt c.txt ./p --files *.txt -b xxx #shall print: a.txt b.txt c.txt
The text was updated successfully, but these errors were encountered:
Merge pull request ogier#20 from eparis/optional-args
6ff05c5
Fix '--flag arg' and Allow flags to take optional arguments
No branches or pull requests
The text was updated successfully, but these errors were encountered: