| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-04-19 | change "kind" to "cardinality", add support for maps to parser | Alex Flint | |
| 2021-04-19 | refactor canParse into kindOf | Alex Flint | |
| 2021-04-19 | factor setSlice into its own file, add setMap, and add tests for both | Alex Flint | |
| 2021-04-16 | fix a comment | Alex Flint | |
| 2021-01-31 | replace "name" and "typ" by storing the original StructField | Alex Flint | |
| 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-07-06 | move empty tag check inside the loop | Alex Flint | |
| 2020-03-01 | add Config.IgnoreEnv to ignore environment variables | Alex Flint | |
| 2020-01-24 | make sure to deep copy the field indices | Alex Flint | |
| 2020-01-24 | fix issue with duplicate fields in embedded structs | Alex Flint | |
| 2020-01-19 | parse: fix typo in comment | Marco Molteni | |
| 2019-11-30 | Removed "dataname" tag | Andrew Morozko | |
| 2019-11-30 | Various changes | Andrew Morozko | |
| 2019-11-29 | Added the "dataname" tag | Andrew Morozko | |
| 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 | |
