74 Commits (f5513590f52b5f90566a10ad9452f52dffd469f8)

Author SHA1 Message Date
Joe Richey joerichey@google.com 1794792adf Add ability to use custom Flag types
7 years ago
Jesse Szwedko d71794de19 Make ApplyWithError a public method on errorableFlag
8 years ago
drekar 4661a59b20 errorableFlag: scope result of type assertion.
8 years ago
Jesse Szwedko e367fafa3d Return an error when parsing environment variables for values fails
8 years ago
Jesse Szwedko a00c3f5872 Consider empty environment variables as set
8 years ago
Antonio Murdaca c516bce8f1
flags: provide a type to sort flags
8 years ago
Dan Buch 6185b8d8fd
Generate code for flag types and context accessors
8 years ago
Dan Buch a0e694ed72
Add UintFlag, Uint64Flag types and supporting code
8 years ago
Dan Buch 537f5beb66
Tweaks to Int64Flag PR
8 years ago
Bruno França dos Reis 5c7cca7f16 Adding Int64Slice related stuff in flag.go and context.go, and related tests
8 years ago
Bruno França dos Reis 4962423cba Adding Int64Flag type and related tests
8 years ago
Dan Buch 7cd5bed6cb
Backporting flagValue func from v2 branch
8 years ago
Joshua Rubin f621deee5a
fix panic getting visible flags
8 years ago
Matt Farina 07ce8bf79c Cleaned up else per golint
8 years ago
Matt Farina 2f110bd745 Cleaned up exported func comments per golint
8 years ago
Matt Farina 6f0b442222 Update to ErrWriter and make available on app
8 years ago
Matt Farina 2a256d4c53 Provide a variable for writing output with a default of os.Stderr
8 years ago
Dan Buch cd92adcb75
Further simplifying default flag stringer func
8 years ago
Dan Buch 6089d723a8
Use existing `prefixedNames` func
8 years ago
Dan Buch 69a8e25f3d
Make flag usage rendering more consistent; show default values
8 years ago
Dan Buch 23af5dd643
Rename flag stringer func bits for clarity, consistency
8 years ago
Dan Buch 22773b14c1
Allow for pluggable flag-level help text formatting
8 years ago
Dan Buch fed78b8bab
Rework of hidden flag impl plus some Action func corrections
8 years ago
Harshavardhana 99431669d0
New ``Hide`` variable for all Flags
8 years ago
Kevin Cantwell 13b7eedc13 Parses usage placeholders via back quotes. Resolves #333
8 years ago
adamclerk cde8418658 Fixes spelling issues and import alphabetical issues
8 years ago
Gregor Noczinski 09e2c89597 * Changed the way how to return the result. Because of strange ci failure
8 years ago
Gregor Noczinski 82ddbd9a07 * Improve GenericFlag.String() by suppressing empty "" for GenericFlags on nil or empty Generic.String()
8 years ago
Jille Timmermans f101a00018 Export cli.Flag.GetName (previously cli.Flag.getName)
9 years ago
ston1th 25ef368235 added destination scan testing and BoolT
9 years ago
ston1th bb7e45acf1 Added destination scan support for flags
9 years ago
Jesse Szwedko 005b120d20 Add godoc comments to flag structs
9 years ago
Sergey Romanov f47f7b7e85 Fix panic if Valus in Int/StringSliceFlasg is missing
9 years ago
jszwedko 44d40054fa Use 0 as the base when parsing ints
10 years ago
Sam Zaydel ef23aa6da2 strconv.ParseInt should be used instead of strconv.ParseUint when reading Int Flags from envvars.
10 years ago
jszwedko 059c02782a Use double quotes in output for defaults
10 years ago
Dan Buch 21d399c3fa Merge pull request #166 from codegangsta/fix-generic-flag-help-text
10 years ago
Dan Buch 5b9e204508 Merge pull request #153 from codegangsta/allow-hiding-of-help-flag
10 years ago
jszwedko 22dbe6ffdc Fix help text for generic flag to not insinuate that you can specify multiple
10 years ago
jszwedko 780f839a02 Allow hiding of help flag without hiding help subcommand
10 years ago
Dan Buch 78d497e4cf Adding support for multiple env var "cascade"
10 years ago
Ghislain Gt 98af61a59f Add time.Duration flag type
10 years ago
Dan Buch fc16c67be3 Updating structs to use labels, adding tests for env stuff
10 years ago
Dan Buch 97fd93272f Starting to hack in some env var configuration goodness
10 years ago
Jeremy Saenz bb9189510a Merge pull request #81 from zenoss/upstream/feature/generic-flags
10 years ago
Summer Mousa a911ec75e4 Can now change these default flags in other applications
10 years ago
Pekka Enberg 646b290d5d Make StringSliceFlag usage text consistent
10 years ago
Summer Mousa 1eaa882c3a removed extranneous value method on the generic type
10 years ago
Summer Mousa 13e88629f5 Generic parsers as flag types
10 years ago
Jeremy Saenz 640826c88f Merge pull request #78 from zenoss/feature/bash-completion
10 years ago