Brett Langdon
034ab86faf
Add config
9 years ago
Brett Langdon
fb409117aa
Add alexflint/go-arg
git-subtree-dir: vendor/github.com/alexflint/go-arg
git-subtree-mainline: f34def0639
git-subtree-split: 7c77c70f85
9 years ago
Brett Langdon
f34def0639
Initial setup
9 years ago
Alex Flint
7c77c70f85
Merge pull request #39 from alexflint/embedded
add support for embedded structs
9 years ago
Alex Flint
03900620e2
add not on embedding to readme
9 years ago
Alex Flint
12fa37d10d
add support for embedded structs
9 years ago
Alex Flint
e6fdb157e9
Merge pull request #38 from alexflint/version_string
Add support for version strings
9 years ago
Alex Flint
f882700b72
add to readme
9 years ago
Alex Flint
c453aa1a28
add support for version string
9 years ago
Alex Flint
34954f45ce
Merge pull request #36 from alexflint/add_goreportcard_readme
Add goreportcard to README.md
10 years ago
Alex Flint
6e9648cac6
add goreportcard to readme.md
10 years ago
Alex Flint
a5617823b0
Merge pull request #35 from alexflint/fix_example_names
fix example function names
10 years ago
Alex Flint
5800b89ce9
fix example function names
10 years ago
Alex Flint
34b52501bd
Merge pull request #34 from walle/defaults_for_multiple
Print defaults for multiples
10 years ago
Fredrik Wallgren
e71d6514f4
Print defaults for multiples
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.
10 years ago
Alex Flint
45474a9b25
Merge pull request #33 from walle/multiple
Defaults for multiples, intended behaviour
10 years ago
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.
10 years ago
Alex Flint
aaae1550b7
Merge pull request #32 from alexflint/override_program_name
make it possible to override the name of the program
10 years ago
Alex Flint
77dd0df006
Merge pull request #31 from alexflint/parse_ip_mac_and_email
Parse IP addresses, MAC addresses, and email addresses
10 years ago
Alex Flint
a1c72f6aa9
Merge remote-tracking branch 'origin/master' into parse_ip_mac_and_email
10 years ago
Alex Flint
c0809e537f
Merge pull request #30 from alexflint/scalar_pointers
add support for pointers and TextUnmarshaler
10 years ago
Alex Flint
c9584269b9
added tests for MAC and email addresses
10 years ago
Alex Flint
9a30acda05
added tests for IP address parsing
10 years ago
Alex Flint
e389d7f782
add support for IP address, email address, and MAC address
10 years ago
Alex Flint
8fee8f7bbe
move installation instructions to top
10 years ago
Alex Flint
95761fa14a
update readme with new additions
10 years ago
Alex Flint
b5933a0ea8
Merge remote-tracking branch 'origin/master' into scalar_pointers
10 years ago
Alex Flint
93247e2f3b
Merge pull request #29 from alexflint/parse_duration
Add support for time.Duration fields
10 years ago
Alex Flint
865cc5a973
add support for pointers and TextUnmarshaler
10 years ago
Alex Flint
64a4bab550
add test for invalid durations
10 years ago
Alex Flint
ed2b19f2bb
add support for time.Duration fields
10 years ago
Alex Flint
e560d079ba
Merge pull request #9 from brettlangdon/dev/environment.variables.sqwished
Add support for environment variables
10 years ago
Brett Langdon
8dd29d34bf
Add support for environment variables
10 years ago
Alex Flint
b1ec8c9093
make it possible to override the name of the program
10 years ago
Alex Flint
c9155bb0c3
Merge pull request #26 from alexflint/brettlangdon-dev/positional.help.sqwished
Resolve some merge conflicts from #8
10 years ago
Alex Flint
4197d283e4
extract common colWidth constant
10 years ago
Alex Flint
77be03b907
resolve merge
10 years ago
Alex Flint
f8ea16beee
Merge pull request #25 from alexflint/return_parser_from_mustparse
MustParse returns *Parser
10 years ago
Alex Flint
9aad09fe14
fix example code
10 years ago
Alex Flint
f89698667c
add custom validation example to README
10 years ago
Alex Flint
0c0f9a53ac
MustParse returns *Parser
10 years ago
Alex Flint
d97f8fd931
Merge pull request #24 from toothrot/master
Fix error when printing usage for multi-value arguments
10 years ago
Alex Rakoczy
e4e9e19427
Fix error when printing usage for multi-value arguments
We try to compare []strings, which are uncomparable types:
`panic: runtime error: comparing uncomparable type []string`
10 years ago
Alex Flint
ce5525d776
Merge pull request #19 from walle/add_default_value_to_usage
Add default values to usage
10 years ago
Fredrik Wallgren
670c7b787d
Fix merge conflicts
10 years ago
Brett Langdon
d45bd4523c
Display help text for positional arguments
10 years ago
Fredrik Wallgren
b0d37d1fb2
Add default values to usage
Check if the value isn't it's zero value and if not add a default value
to the usage text.
10 years ago
Alex Flint
5db9c77fa3
Merge pull request #13 from walle/show_builtin
Add built ins to options in help output
10 years ago
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.
10 years ago
Alex Flint
785fa3f8c9
Merge pull request #16 from walle/move_doc
Move package documentation to doc.go
10 years ago