| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2017-10-02 | Altered help tag parsing to reduce the constraints on help text content; old ↵ | Rick | |
| behaviour is retained for backward compatibility | |||
| 2017-09-16 | Allow spaces after each comma in tags | Rick | |
| 2017-03-30 | required positional args | Mario Hros | |
| 2017-03-04 | Adding separate tag option | Kenneth Shaw | |
| As outlined in #49, there is a need to mimic the behavior of other applications by interweaving positional and non-positional parameters. This change adds the 'separate' option that will force a arg of type []string to only read the next supplied value. For example, when dealing with the following arg type: var MyArgs struct { Pos []string `arg:"positional"` Separate []string `arg:"-s,separate"` } This commit will parse the following command line: ./app pos1 pos2 -s=separate1 -s=separate2 pos3 -s=separate3 pos4 Such that MyArgs.Pos will be [pos1 pos2 pos3 pos4] and MyArgs.Separate will be [separate1 separate2 separate3]. Unit tests for the above have also been written and are included in this commit, as well as the addition of a section to README.md and an example func in example_test.go. Fixes #49 | |||
| 2017-02-21 | deal with "-" as option value | Alex Flint | |
| 2017-02-15 | deal with booleans correctly | Alex Flint | |
| 2017-02-15 | put comment back | Alex Flint | |
| 2017-02-15 | use go-scalar, vendoring | Alex Flint | |
| 2017-02-09 | fix case where os.Args is empty | Alex Flint | |
| 2017-01-23 | add support for description string | Emmanouil "Manolis" Maragkakis | |
| 2016-10-10 | add support for embedded structs | Alex Flint | |
| 2016-09-08 | add support for version string | Alex Flint | |
| 2016-07-31 | fix example function names | Alex Flint | |
| 2016-02-29 | Allow override of defaults for slice arguments | Fredrik Wallgren | |
| This commit fixes a bug where if a multiple value argument (slice) has default values, the submitted values will be appended to the default. Not overriding them as expected. | |||
| 2016-02-22 | Merge pull request #32 from alexflint/override_program_name | Alex Flint | |
| make it possible to override the name of the program | |||
| 2016-01-23 | add support for IP address, email address, and MAC address | Alex Flint | |
| 2016-01-23 | add support for pointers and TextUnmarshaler | Alex Flint | |
| 2016-01-23 | add support for time.Duration fields | Alex Flint | |
| 2016-01-18 | Add support for environment variables | brettlangdon | |
| 2016-01-18 | make it possible to override the name of the program | Alex Flint | |
| 2016-01-05 | MustParse returns *Parser | Alex Flint | |
| 2015-11-22 | Merge pull request #13 from walle/show_builtin | Alex Flint | |
| Add built ins to options in help output | |||
| 2015-11-16 | Add built ins to options in help output | Fredrik Wallgren | |
| Adds help to the options in help output with an easy way to add more built ins. | |||
| 2015-11-11 | Move package documentation to doc.go | Fredrik Wallgren | |
| 2015-11-04 | add more tests | Alex Flint | |
| 2015-11-01 | fix first example in docs - h/t eric somerlade | Alex Flint | |
| 2015-11-01 | separate help into WriteUsage and WriteHelp | Alex Flint | |
| 2015-11-01 | add .travis.yml | Alex Flint | |
| 2015-11-01 | fix example | Alex Flint | |
| 2015-11-01 | added runnable examples | Alex Flint | |
| 2015-11-01 | move more stuff over to the parser struct | Alex Flint | |
| 2015-10-31 | added parser struct | Alex Flint | |
| 2015-10-31 | udpate readme | Alex Flint | |
| 2015-10-31 | added usage generation | Alex Flint | |
| 2015-10-31 | positional arguments working | Alex Flint | |
| 2015-10-31 | basic first version working | Alex Flint | |
