| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-10-21 | Remove %w for compatibility with go<1.13 | Alex Flint | |
| 2019-10-19 | minor cleanups | Alex Flint | |
| 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 typo | Alex Flint | |
| 2019-05-03 | no need to initialize nil structs during path traversal | Alex Flint | |
| 2019-05-03 | print help and usage at subcommand level if necessary | Alex Flint | |
| 2019-05-03 | add subcommands to usage string | Alex Flint | |
| 2019-05-03 | Merge remote-tracking branch 'origin/master' into subcommand-impl | Alex Flint | |
| # Conflicts: # parse.go | |||
| 2019-05-03 | add expected output for usage example | Alex Flint | |
| 2019-05-02 | fix error message | Alex Flint | |
| 2019-05-02 | add unittests for canParse | Alex Flint | |
| 2019-04-30 | add several subcommand unittests | Alex Flint | |
| 2019-04-30 | set subcommand structs to be struct pointers | Alex Flint | |
| 2019-04-30 | introduced path struct | Alex Flint | |
| 2019-04-30 | add recursive expansion of subcommands | Alex Flint | |
| 2019-04-30 | rename get/settable to readable/writable | Alex Flint | |
| 2019-04-14 | all tests passing again | Alex Flint | |
| 2019-04-14 | restore process as a free func | Alex Flint | |
| 2019-04-14 | refactor validation | Alex Flint | |
| 2019-04-14 | simplify processing of positionals a little | Alex Flint | |
| 2018-05-14 | Fix the problem with errors | Illia Volochii | |
| 2018-05-01 | Change format from JSON to CSV | Illia Volochii | |
| 2018-04-26 | Fix providing multiple values via environment variables | Illia Volochii | |
| 2018-04-18 | fix repeated text unmarshal bug | Alex Flint | |
| 2018-04-18 | separate scalar.CanParse from isBoolean | 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 | 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 | |
