Skip to content

Commit

Permalink
Improved error codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszj committed Dec 23, 2014
1 parent 8ecb0b3 commit fb62b33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion acextract/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ let (success, error) = cli.parse()
if !success {
println(error!)
cli.printUsage()
exit(EX_USAGE)
if cli_help.value {
exit(EX_OK)
} else {
exit(EX_USAGE)
}
}

// Print help screen.
Expand Down

0 comments on commit fb62b33

Please sign in to comment.