Skip to content
Snippets Groups Projects
Commit 4512159f authored by Ri Xu's avatar Ri Xu
Browse files

Change the exit code 1 to 0 after print versions or help info.

parent 77a2539a
No related branches found
Tags 1.4
No related merge requests found
......@@ -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)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment