Skip to content

Commit 4512159

Browse files
author
Ri Xu
committed
Change the exit code 1 to 0 after print versions or help info.
1 parent 77a2539 commit 4512159

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ func parseFlags() {
158158
}
159159
if *verPtr {
160160
fmt.Printf("aurora version: %.1f\r\n", Version)
161-
os.Exit(1)
161+
os.Exit(0)
162162
}
163163
if *helpPtr {
164164
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)
165-
os.Exit(1)
165+
os.Exit(0)
166166
}
167167
}
168168

0 commit comments

Comments
 (0)