Skip to content

Commit

Permalink
correct exit code for version flag #4
Browse files Browse the repository at this point in the history
  • Loading branch information
wakeful committed Aug 14, 2019
1 parent 2f9b9f3 commit 253bb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yaml2json.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func main() {

if *showVersion {
fmt.Printf("yaml2json\n url: %s\n version: %s\n", url, version)
os.Exit(2)
os.Exit(0)
}

input, err := readInput()
Expand Down

0 comments on commit 253bb4e

Please sign in to comment.