summaryrefslogtreecommitdiff
path: root/usage.go
AgeCommit message (Collapse)Author
2017-03-08nicer usage outputMario Hros
2017-02-08print description in help message, not in usageEmmanouil "Manolis" Maragkakis
2017-01-23add support for description stringEmmanouil "Manolis" Maragkakis
2016-09-08add support for version stringAlex Flint
2016-03-06Print defaults for multiplesFredrik Wallgren
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.
2016-02-22Merge pull request #32 from alexflint/override_program_nameAlex Flint
make it possible to override the name of the program
2016-01-23add support for IP address, email address, and MAC addressAlex Flint
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