Commit Graph

39 Commits

Author SHA1 Message Date
Alex Flint e6003d3b6a add subcommands to readme 2019-08-06 16:41:50 -07:00
Alex Flint 42c2ab5ac6
Merge pull request #78 from alexflint/readme-spelling
minor fixes to readme
2019-04-14 17:18:01 -07:00
Alex Flint 891a07ec29 more tweaks 2019-04-14 16:08:51 -07:00
Alex Flint e56211335f minor fixes to readme 2019-04-14 16:06:27 -07:00
Alex Flint 1ec799ffcf update link for golangci badge 2019-04-04 09:18:22 -07:00
Alex Flint 6b4ab7355c add golangci badge, and fix some lint issues found by the tool 2019-04-04 09:10:24 -07:00
Pavel Borzenkov a6af419fff README: update TextUnmarshaler example
Values are much more convenient to use in argument structs, so update
README to use them instead of pointers in the example as we now support
this.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2018-11-20 12:32:32 +03:00
Illia Volochii fa5fe315f8 Change format from JSON to CSV 2018-05-01 12:02:44 +03:00
Illia Volochii 75bf1a1525 Fix providing multiple values via environment variables 2018-04-26 21:10:44 +03:00
Wlazlo, Matt 51337ded77 fixed example comment, test coverage issue 2018-04-16 11:07:48 +10:00
Wlazlo, Matt d4cc703210 Custom parsers implementing encoding.TextMarshaler() can have default values printed via --help 2018-04-13 14:46:24 +10:00
Rick ba9514f0be Further clarification 2017-10-02 14:36:23 +01:00
Rick d7961941f0 Altered help tag parsing to reduce the constraints on help text content; old behaviour is retained for backward compatibility 2017-10-02 14:18:41 +01:00
K3A b413f8dfb0 Merge branch 'master' into master 2017-03-09 18:25:56 +01:00
Mario Hros 9e6f80aa90 readme update 2017-03-08 20:52:02 +01:00
Kenneth Shaw d4c2b35b2e Adding separate tag option
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-03-04 09:13:12 +07:00
Emmanouil "Manolis" Maragkakis db27431153 add support for description string 2017-01-23 20:41:12 -05:00
Alex Flint 03900620e2 add not on embedding to readme 2016-10-10 10:52:42 +10:30
Alex Flint f882700b72 add to readme 2016-09-08 21:26:12 -07:00
Alex Flint 6e9648cac6 add goreportcard to readme.md 2016-07-31 10:16:17 -07:00
Alex Flint 8fee8f7bbe move installation instructions to top 2016-01-23 20:11:51 -08:00
Alex Flint 95761fa14a update readme with new additions 2016-01-23 20:08:00 -08:00
brettlangdon 8dd29d34bf Add support for environment variables 2016-01-18 13:42:04 -05:00
Alex Flint 9aad09fe14 fix example code 2016-01-05 14:00:29 -08:00
Alex Flint f89698667c add custom validation example to README 2016-01-05 13:57:01 -08:00
Alex Flint 239d0c1c6f add coveralls badge 2015-11-04 10:58:20 -08:00
Alex Flint 5185642348 fix note on boolean flags in readme 2015-11-03 08:15:45 -08:00
Alex Flint 60f2612c0c separate help into WriteUsage and WriteHelp 2015-11-01 13:53:51 -08:00
Alex Flint bcb41ba048 add travis badge 2015-11-01 13:40:27 -08:00
Alex Flint beede9329a added runnable examples 2015-11-01 11:34:22 -08:00
Alex Flint 026a824666 udpate readme 2015-10-31 19:15:43 -07:00
Alex Flint b666b30474 udpate readme 2015-10-31 19:15:08 -07:00
Alex Flint 19d956870f udpate readme 2015-10-31 19:14:11 -07:00
Alex Flint 6dc9bbbdfd udpate readme 2015-10-31 19:13:48 -07:00
Alex Flint 2ac8f555a5 udpate readme 2015-10-31 19:10:13 -07:00
Alex Flint aa20f7be39 udpate readme 2015-10-31 18:51:21 -07:00
Alex Flint 6582088596 udpate readme 2015-10-31 18:49:20 -07:00
Alex Flint 04e96c0c6b udpate readme 2015-10-31 18:48:38 -07:00
Alex Flint 22c73471e6 add README 2015-10-31 18:46:56 -07:00