| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2015-05-10 | Call normalizeFlagName function only once | Anastasis Andronidis | |
| 2015-05-08 | Support bool= with shortnames | Eric Paris | |
| Currently a shortname bool variable b cannot use the -b=true -b=false form because the -b is assumed to mean true and the = format is never noticed. | |||
| 2015-05-08 | Rewrite short arg parsing for readability | Eric Paris | |
| new function to parse each arg (less indentation) make it clear what value is being set and where it came from | |||
| 2015-05-08 | parseLongArg code rework for readability | Eric Paris | |
| move the -- parsing up into the parent make it more obvious which values we are using | |||
| 2015-04-28 | Custom normalization func | Eric Paris | |
| This can be used however you want. My test is for flag aliases | |||
| 2015-04-28 | Make normalizedName external so we can make the functions external | Eric Paris | |
| 2015-04-28 | Ability to mark flags as deprecated | Eric Paris | |
| They will not show up in usage or help, but they will still work. The usage message will print on os.Stderr any time the flag is set. | |||
| 2015-04-27 | Merge pull request #10 from eparis/declare_by_name | Eric Paris | |
| Declare Flag{ by name instead of order | |||
| 2015-04-27 | Merge pull request #12 from fabianofranz/master | Eric Paris | |
| Add support to short form with equal sign: -p=value | |||
| 2015-04-23 | Allow WordSeparators to be set after flags are added | Tim Hockin | |
| 2015-04-24 | Allow flag name normalization for compare | Tim Hockin | |
| This allows the FlagSet to define equivalent word-separators. Given this, one can make - and _ equivalent, so --foo-bar and --foo_bar both work. | |||
| 2015-04-22 | Add support to short form with equal sign: -p=value | fabianofranz | |
| 2015-04-07 | Declare Flag{ by name instead of order | Eric Paris | |
| In order to be able to add new (unitialized) fields to Flags{} declare fields by name instead of order | |||
| 2015-04-01 | add annotations for flags | Eric Paris | |
| cobra.Command can make use of annotation in order to generate better bash_completions | |||
| 2015-03-12 | Always return when err is not nil. | Brendan Burns | |
| 2015-02-17 | Fix handling of -- termination | Andy Goldstein | |
| Fix handling of -- termination. Previously, if you ran $command -flag1 -etc -- some args after the command's args would be doubled (some args after some args after). Additionally, if there were items after the -- termination that looked like flags, the parser would throw an error. It's better to terminate parsing when -- is seen, because that usually indicates the caller wants to pass the remainder of the arguments (including flags) as-is to something else. | |||
| 2015-01-16 | Add support for custom boolean flags through IsBoolFlag() | Filipe Brandenburger | |
| This is consistent with Go's native flag parsing module and can be used to implement custom boolean/tri-state flags. Signed-off-by: Filipe Brandenburger <[email protected]> | |||
| 2014-07-11 | Adding Type() method to the values. | spf13 | |
| 2014-06-27 | Moving Value interface to the appropriate file | spf13 | |
| 2014-06-27 | Fixing issues so test pass again | spf13 | |
| 2014-06-27 | Merge branch 'master' of https://github.com/ogier/pflag | spf13 | |
| Conflicts: flag.go | |||
| 2014-04-02 | Compatibility: commandLine -> CommandLine | Alec Thomas | |
| 2014-03-17 | More data types. Each in a separate file. | Riobard | |
| 2014-03-16 | Make reuse message more clear | Johannes Schickling | |
| 2013-11-12 | adding changed flag on flag to track user set vs default | spf13 | |
| 2013-11-05 | Fixing bug where invalid trailing short flag would cause panic | spf13 | |
| 2013-09-24 | cleaning up and adding some functionality needed by cobra | spf13 | |
| 2012-12-20 | Merge pull request #2 from alecthomas/master | Alex Ogier | |
| Add ability to disable interspersed option support. | |||
| 2012-12-20 | Fix comment. | Alec Thomas | |
| 2012-12-20 | Set interspersed behaviour via a setter. | Alec Thomas | |
| 2012-12-19 | Add support for non-interspersed option/non-option args. | Alec Thomas | |
| 2012-12-19 | Add missing VarP function for the default command line | Alex Ogier | |
| 2012-12-19 | Merge changes from Go's standard flag library. | Alex Ogier | |
| Up to date through e7cd0a82d669. Relevant changesets: https://code.google.com/p/go/source/detail?r=059ba0d0dc6a27d115c619ff8bcd646335eed67f https://code.google.com/p/go/source/detail?r=64a249c65d510184268160bf595cf3db478a296e https://code.google.com/p/go/source/detail?r=6ca4825bc86760d43392469c0af266bb858fc77b | |||
| 2012-05-09 | Tighten up parsing to be less ambiguous, follow GNU conventions | Alex Ogier | |
| 2012-05-09 | Add README | Alex Ogier | |
| 2012-05-07 | Formatted with go fmt | Alex Ogier | |
| 2012-05-04 | Fix up pflag's usage documentation, and reference GNU spec | Alex Ogier | |
| 2012-05-04 | s/shortcut/shorthand/ | Alex Ogier | |
| 2012-05-04 | Document the spaceless shortcut argument format -Ifile | Alex Ogier | |
| 2012-05-04 | Print defaults with nice spacing regardless of shortcuts | Alex Ogier | |
| 2012-05-04 | Update package documentation for POSIX-style flags | Alex Ogier | |
| 2012-05-04 | Nicer error message for undefined flags | Alex Ogier | |
| 2012-04-30 | Mark flags as visited based on their name | Alex Ogier | |
| 2012-04-30 | Rename package flag --> pflag | Alex Ogier | |
| 2012-04-30 | Oops, allocate memory for arguments, don't set them to "" | Alex Ogier | |
| 2012-04-30 | Allow -Ifile, -n3 style shorthand | Alex Ogier | |
| 2012-04-30 | Print out usage in the proper POSIX format | Alex Ogier | |
| 2012-04-30 | Modify flag parser to handle -shortcut and long --options | Alex Ogier | |
| 2012-04-26 | Add Shortcut field to Flag, and *P() versions of flags that take shortcuts | Alex Ogier | |
| 2012-04-26 | Copy the flag module from the go standard library | Alex Ogier | |
