Alex Flint
|
4197d283e4
|
extract common colWidth constant
|
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 |
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 |
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 |
Fredrik Wallgren
|
d6a447ed7c
|
Fix lint warning
|
10 years ago |
Fredrik Wallgren
|
df17f4df45
|
Fix bug with error not being written to stderr
Only the usage message was written to stderr, the error was written with
the standard fmt.Println.
|
10 years ago |
Fredrik Wallgren
|
935b2a1bd5
|
Write usage message to stderr on error
When the parsing of parameters/flags fails eg. when a required flag is
missing, print the usage statement and error to stderr instead of
stdout.
|
10 years ago |
Brett Langdon
|
383b8b84c1
|
Remove excess trailing whitespace from Usage generation
|
10 years ago |
Alex Flint
|
9111061915
|
add tests for usage info
|
10 years ago |
Alex Flint
|
60f2612c0c
|
separate help into WriteUsage and WriteHelp
|
10 years ago |
Alex Flint
|
30befae91a
|
move more stuff over to the parser struct
|
10 years ago |
Alex Flint
|
f427e9f317
|
added parser struct
|
10 years ago |
Alex Flint
|
04e96c0c6b
|
udpate readme
|
10 years ago |
Alex Flint
|
76293a5a72
|
add usage.go
|
10 years ago |