Fredrik Wallgren
1488562b1e
Allow override of defaults for slice arguments
...
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-29 22:05:26 +01:00
Alex Flint
aaae1550b7
Merge pull request #32 from alexflint/override_program_name
...
make it possible to override the name of the program
2016-02-22 06:39:41 -08:00
Alex Flint
e389d7f782
add support for IP address, email address, and MAC address
2016-01-23 20:49:57 -08:00
Alex Flint
865cc5a973
add support for pointers and TextUnmarshaler
2016-01-23 19:40:15 -08:00
Alex Flint
ed2b19f2bb
add support for time.Duration fields
2016-01-23 18:28:35 -08:00
brettlangdon
8dd29d34bf
Add support for environment variables
2016-01-18 13:42:04 -05:00
Alex Flint
b1ec8c9093
make it possible to override the name of the program
2016-01-18 10:31:01 -08:00
Alex Flint
0c0f9a53ac
MustParse returns *Parser
2016-01-05 13:52:33 -08:00
Alex Flint
5db9c77fa3
Merge pull request #13 from walle/show_builtin
...
Add built ins to options in help output
2015-11-22 10:04:14 +10:30
Fredrik Wallgren
330a0da571
Add built ins to options in help output
...
Adds help to the options in help output with an easy way to add more
built ins.
2015-11-16 13:23:58 +01:00
Fredrik Wallgren
ab43eae565
Move package documentation to doc.go
2015-11-11 14:16:39 +01:00
Alex Flint
70c56eff66
add more tests
2015-11-04 10:27:17 -08:00
Alex Flint
95bf6f25e0
fix first example in docs - h/t eric somerlade
2015-11-01 21:55:52 -08:00
Alex Flint
60f2612c0c
separate help into WriteUsage and WriteHelp
2015-11-01 13:53:51 -08:00
Alex Flint
f042ab6386
add .travis.yml
2015-11-01 13:24:35 -08:00
Alex Flint
cd9f5188a8
fix example
2015-11-01 11:40:09 -08:00
Alex Flint
beede9329a
added runnable examples
2015-11-01 11:34:22 -08:00
Alex Flint
30befae91a
move more stuff over to the parser struct
2015-11-01 00:13:23 -07:00
Alex Flint
f427e9f317
added parser struct
2015-10-31 23:57:26 -07:00
Alex Flint
04e96c0c6b
udpate readme
2015-10-31 18:48:38 -07:00
Alex Flint
b9ad104f33
added usage generation
2015-10-31 18:26:58 -07:00
Alex Flint
8397a40f4c
positional arguments working
2015-10-31 17:05:14 -07:00
Alex Flint
408290f7c2
basic first version working
2015-10-31 16:15:24 -07:00