Skip to content

Commit

Permalink
Change the exit code 1 to 0 after print versions or help info.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri Xu committed Nov 9, 2016
1 parent 77a2539 commit 4512159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ func parseFlags() {
}
if *verPtr {
fmt.Printf("aurora version: %.1f\r\n", Version)
os.Exit(1)
os.Exit(0)
}
if *helpPtr {
fmt.Printf("aurora version: %.1f\r\nCopyright (c) 2016 Ri Xu https://xuri.me \r\n\r\nUsage: aurora [OPTIONS] [cmd [arg ...]]\n -c <filename> Use config file. (default: aurora.toml)\r\n -h \t\t Output this help and exit.\r\n -v \t\t Output version and exit.\r\n", Version)
os.Exit(1)
os.Exit(0)
}
}

Expand Down

0 comments on commit 4512159

Please sign in to comment.