| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2018-11-20 | parse_test: add tests covering new TextUnamarshaler value support | Pavel Borzenkov | |
| Signed-off-by: Pavel Borzenkov <[email protected]> | |||
| 2018-11-20 | parse_test: fix formatting | Pavel Borzenkov | |
| Signed-off-by: Pavel Borzenkov <[email protected]> | |||
| 2018-05-14 | Fix the problem with errors | Illia Volochii | |
| 2018-05-01 | Change format from JSON to CSV | Illia Volochii | |
| 2018-04-26 | Add one more test | Illia Volochii | |
| 2018-04-26 | Fix providing multiple values via environment variables | Illia Volochii | |
| 2018-04-18 | add positional test | Alex Flint | |
| 2018-04-18 | drop setScalar | Alex Flint | |
| 2018-01-13 | handle negative values | Alex Flint | |
| 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 | tests | 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-09 | fix case where os.Args is empty | Alex Flint | |
| 2016-10-10 | add support for embedded structs | 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 | added tests for MAC and email addresses | Alex Flint | |
| 2016-01-23 | added tests for IP address parsing | Alex Flint | |
| 2016-01-23 | add support for pointers and TextUnmarshaler | Alex Flint | |
| 2016-01-23 | add test for invalid durations | 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-04 | add more tests | Alex Flint | |
| 2015-11-01 | fix float test for go1.4 | Alex Flint | |
| 2015-10-31 | added parser struct | 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 | |
