| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2017-03-08 | Merge pull request #50 from kenshaw/add-single-notrunc-opts | Alex Flint | |
| Adding single and notrunc tag options | |||
| 2017-03-08 | readme update | Mario Hros | |
| 2017-03-08 | nicer usage output | 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-22 | Merge pull request #48 from alexflint/parse_hyphen | Alex Flint | |
| deal with "-" as option value | |||
| 2017-02-21 | deal with "-" as option value | Alex Flint | |
| 2017-02-17 | Merge pull request #46 from alexflint/vendoring | Alex Flint | |
| vendor in dependencies | |||
| 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 | Merge pull request #45 from alexflint/empty_args | Alex Flint | |
| Do not crash when os.Args is empty | |||
| 2017-02-09 | fix case where os.Args is empty | Alex Flint | |
| 2017-02-09 | Merge pull request #43 from mnsmar/master | Alex Flint | |
| print description in help message, not in usage | |||
| 2017-02-08 | print description in help message, not in usage | Emmanouil "Manolis" Maragkakis | |
| 2017-01-24 | Merge pull request #41 from mnsmar/master | Alex Flint | |
| add support for description string | |||
| 2017-01-23 | add support for description string | Emmanouil "Manolis" Maragkakis | |
| 2016-10-11 | Merge pull request #39 from alexflint/embedded | Alex Flint | |
| add support for embedded structs | |||
| 2016-10-10 | add not on embedding to readme | Alex Flint | |
| 2016-10-10 | add support for embedded structs | Alex Flint | |
| 2016-09-13 | Merge pull request #38 from alexflint/version_string | Alex Flint | |
| Add support for version strings | |||
| 2016-09-08 | add to readme | Alex Flint | |
| 2016-09-08 | add support for version string | Alex Flint | |
| 2016-07-31 | Merge pull request #36 from alexflint/add_goreportcard_readme | Alex Flint | |
| Add goreportcard to README.md | |||
| 2016-07-31 | add goreportcard to readme.md | Alex Flint | |
| 2016-07-31 | Merge pull request #35 from alexflint/fix_example_names | Alex Flint | |
| fix example function names | |||
| 2016-07-31 | fix example function names | Alex Flint | |
| 2016-03-06 | Merge pull request #34 from walle/defaults_for_multiple | Alex Flint | |
| Print defaults for multiples | |||
| 2016-03-06 | Print defaults for multiples | Fredrik Wallgren | |
| Check if the default value supplied is a slice and not nil, if so print the list of values supplied. Test case for slice argument with and without default values. Default values for slices was not printed because slice is not comparable, but the zero value for slices is nil. | |||
| 2016-03-04 | Merge pull request #33 from walle/multiple | Alex Flint | |
| Defaults for multiples, intended behaviour | |||
| 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 | Merge pull request #31 from alexflint/parse_ip_mac_and_email | Alex Flint | |
| Parse IP addresses, MAC addresses, and email addresses | |||
| 2016-01-23 | Merge remote-tracking branch 'origin/master' into parse_ip_mac_and_email | Alex Flint | |
| 2016-01-23 | Merge pull request #30 from alexflint/scalar_pointers | Alex Flint | |
| add support for pointers and TextUnmarshaler | |||
| 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 IP address, email address, and MAC address | Alex Flint | |
| 2016-01-23 | move installation instructions to top | Alex Flint | |
| 2016-01-23 | update readme with new additions | Alex Flint | |
| 2016-01-23 | Merge remote-tracking branch 'origin/master' into scalar_pointers | Alex Flint | |
| 2016-01-23 | Merge pull request #29 from alexflint/parse_duration | Alex Flint | |
| Add support for time.Duration fields | |||
| 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 | Merge pull request #9 from brettlangdon/dev/environment.variables.sqwished | Alex Flint | |
| Add support for environment variables | |||
| 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-18 | Merge pull request #26 from alexflint/brettlangdon-dev/positional.help.sqwished | Alex Flint | |
| Resolve some merge conflicts from #8 | |||
| 2016-01-18 | extract common colWidth constant | Alex Flint | |
| 2016-01-18 | resolve merge | Alex Flint | |
