summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-05-16Merge pull request #65 from illia-v/env_multiple_valuesAlex Flint
Fix providing multiple values via environment variables
2018-05-14Fix the problem with errorsIllia Volochii
2018-05-01Change format from JSON to CSVIllia Volochii
2018-04-26Add one more testIllia Volochii
2018-04-26Fix providing multiple values via environment variablesIllia Volochii
2018-04-20Merge pull request #64 from alexflint/repeated-unmarshaltextAlex Flint
Fix repeated arguments implementing TextUnmarshaler
2018-04-18add positional testAlex Flint
2018-04-18fix repeated text unmarshal bugAlex Flint
2018-04-18separate scalar.CanParse from isBooleanAlex Flint
2018-04-18drop setScalarAlex Flint
2018-04-15Merge pull request #62 from mwlazlo-tls/masterAlex Flint
Custom parsers implementing encoding.TextMarshaler() can have default…
2018-04-16fixed example comment, test coverage issueWlazlo, Matt
2018-04-13Custom parsers implementing encoding.TextMarshaler() can have default values ↵Wlazlo, Matt
printed via --help
2018-02-05Merge pull request #61 from alexflint/negative-valuesAlex Flint
handle negative values
2018-01-13handle negative valuesAlex Flint
2017-10-02Merge pull request #59 from rickb777/masterAlex Flint
Altered help tag parsing to allow comma and colon
2017-10-02Further clarificationRick
2017-10-02Altered help tag parsing to reduce the constraints on help text content; old ↵Rick
behaviour is retained for backward compatibility
2017-09-27Merge pull request #57 from rickb777/masterAlex Flint
Allow spaces after each comma in tags
2017-09-16Allow spaces after each comma in tagsRick
2017-03-30Merge pull request #54 from k3a/masterAlex Flint
Required multiple positionals
2017-03-30testsMario Hros
2017-03-30required positional argsMario Hros
2017-03-09Merge pull request #53 from k3a/masterAlex Flint
Make usage output nicer
2017-03-09Merge branch 'master' into masterK3A
2017-03-08Merge pull request #50 from kenshaw/add-single-notrunc-optsAlex Flint
Adding single and notrunc tag options
2017-03-08readme updateMario Hros
2017-03-08nicer usage outputMario Hros
2017-03-04Adding separate tag optionKenneth 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-22Merge pull request #48 from alexflint/parse_hyphenAlex Flint
deal with "-" as option value
2017-02-21deal with "-" as option valueAlex Flint
2017-02-17Merge pull request #46 from alexflint/vendoringAlex Flint
vendor in dependencies
2017-02-15deal with booleans correctlyAlex Flint
2017-02-15put comment backAlex Flint
2017-02-15use go-scalar, vendoringAlex Flint
2017-02-09Merge pull request #45 from alexflint/empty_argsAlex Flint
Do not crash when os.Args is empty
2017-02-09fix case where os.Args is emptyAlex Flint
2017-02-09Merge pull request #43 from mnsmar/masterAlex Flint
print description in help message, not in usage
2017-02-08print description in help message, not in usageEmmanouil "Manolis" Maragkakis
2017-01-24Merge pull request #41 from mnsmar/masterAlex Flint
add support for description string
2017-01-23add support for description stringEmmanouil "Manolis" Maragkakis
2016-10-11Merge pull request #39 from alexflint/embeddedAlex Flint
add support for embedded structs
2016-10-10add not on embedding to readmeAlex Flint
2016-10-10add support for embedded structsAlex Flint
2016-09-13Merge pull request #38 from alexflint/version_stringAlex Flint
Add support for version strings
2016-09-08add to readmeAlex Flint
2016-09-08add support for version stringAlex Flint
2016-07-31Merge pull request #36 from alexflint/add_goreportcard_readmeAlex Flint
Add goreportcard to README.md
2016-07-31add goreportcard to readme.mdAlex Flint
2016-07-31Merge pull request #35 from alexflint/fix_example_namesAlex Flint
fix example function names