last updates?

This commit is contained in:
zach rice committed 2019-04-16 18:13:24 -05:00
1 parent 2e7325ce03
commit 7dfa3f2b48
6 files changed
+35 -38

No files matched your search

+3 -3
View File
@@ -60,13 +60,13 @@ func ParseOpts() *Options {
_, err := parser.Parse()
if err != nil {
if flagsErr, ok := err.(*flags.Error); ok && flagsErr.Type == flags.ErrHelp {
os.Exit(0)
if flagsErr, ok := err.(*flags.Error); ok && flagsErr.Type != flags.ErrHelp {
parser.WriteHelp(os.Stdout)
}
os.Exit(0)
}
if len(os.Args) == 1 {
// TODO: this will be a feature, check locally
parser.WriteHelp(os.Stdout)
os.Exit(0)
}