Commit Graph

60 Commits

Author SHA1 Message Date
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.
2015-11-11 10:29:01 +01:00
Alex Flint a49bba8533 Merge pull request #10 from walle/fail_to_stderr
Write usage message to stderr on error
2015-11-09 10:04:37 -08:00
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.
2015-11-09 10:27:15 +01:00
brettlangdon 383b8b84c1 Remove excess trailing whitespace from Usage generation 2015-11-07 09:39:23 -05:00
Alex Flint 9111061915 add tests for usage info 2015-11-04 09:47:58 -08:00
Alex Flint 60f2612c0c separate help into WriteUsage and WriteHelp 2015-11-01 13:53:51 -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 76293a5a72 add usage.go 2015-10-31 18:32:20 -07:00