summaryrefslogtreecommitdiff
path: root/usage.go
AgeCommit message (Collapse)Author
2016-01-18make it possible to override the name of the programAlex Flint
2016-01-18extract common colWidth constantAlex Flint
2016-01-18resolve mergeAlex Flint
2015-12-04Fix error when printing usage for multi-value argumentsAlex Rakoczy
We try to compare []strings, which are uncomparable types: `panic: runtime error: comparing uncomparable type []string`
2015-11-22Fix merge conflictsFredrik Wallgren
2015-11-21Display help text for positional argumentsbrettlangdon
2015-11-22Add default values to usageFredrik Wallgren
Check if the value isn't it's zero value and if not add a default value to the usage text.
2015-11-16Add built ins to options in help outputFredrik Wallgren
Adds help to the options in help output with an easy way to add more built ins.
2015-11-11Merge pull request #14 from walle/usage_on_stderr_bugAlex Flint
Fix bug with error not being written to stderr
2015-11-11Fix lint warningFredrik Wallgren
2015-11-11Fix bug with error not being written to stderrFredrik Wallgren
Only the usage message was written to stderr, the error was written with the standard fmt.Println.
2015-11-09Merge pull request #10 from walle/fail_to_stderrAlex Flint
Write usage message to stderr on error
2015-11-09Write usage message to stderr on errorFredrik Wallgren
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.
2015-11-07Remove excess trailing whitespace from Usage generationbrettlangdon
2015-11-04add tests for usage infoAlex Flint
2015-11-01separate help into WriteUsage and WriteHelpAlex Flint
2015-11-01move more stuff over to the parser structAlex Flint
2015-10-31added parser structAlex Flint
2015-10-31udpate readmeAlex Flint
2015-10-31add usage.goAlex Flint