| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-01-31 | Merge remote-tracking branch 'origin/master' into optional-long | Alex Flint | |
| 2021-01-31 | skip unexported fields | Alex Flint | |
| 2020-12-20 | Optional long arguments | Andrew Morozko | |
| 2020-03-01 | add Config.IgnoreEnv to ignore environment variables | Alex Flint | |
| 2020-01-24 | add a further test | Alex Flint | |
| 2020-01-24 | fix issue with duplicate fields in embedded structs | Alex Flint | |
| 2019-11-30 | Various changes | Andrew Morozko | |
| 2019-10-19 | store default values during NewParser | Alex Flint | |
| 2019-10-08 | add support for default values in struct tags | Alex Flint | |
| 2019-10-04 | fix issue 89 (multiple args terminated by "--") | Alex Flint | |
| 2019-08-06 | fix comment | Alex Flint | |
| 2019-05-03 | no need to initialize nil structs during path traversal | Alex Flint | |
| 2019-05-03 | add Parser.Subcommand and Parser.SubcommandNames | Alex Flint | |
| 2019-05-02 | test use of --version | Alex Flint | |
| 2019-05-02 | use backticks rather than backslashes in string literal | Alex Flint | |
| 2019-05-02 | add test for case where environment var is not present | Alex Flint | |
| 2019-05-02 | add test case for missing value in middle of argument string | Alex Flint | |
| 2019-04-30 | add recursive expansion of subcommands | Alex Flint | |
| 2019-04-30 | check error in test | Alex Flint | |
| 2019-04-14 | refactor validation | Alex Flint | |
| 2019-04-04 | add golangci badge, and fix some lint issues found by the tool | Alex Flint | |
| 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 | |
