Skip to content

Commit

Permalink
cmd: document exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Zylman committed Nov 3, 2014
1 parent 3513b6c commit 3bafc97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,10 @@ Record #2 has error: wrong number of fields in line
$ csvlint perfect.csv
file is valid
```

### Exit codes

`csvlint` uses three different exit codes to mean different things:
* 0 - the file is valid
* 1 - couldn't parse the entire file
* 2 - could parse the file, but there were lint failures
2 changes: 1 addition & 1 deletion cmd/csvlint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ func main() {
fmt.Println("\nunable to parse any further")
os.Exit(1)
}
os.Exit(0)
os.Exit(2)
}

0 comments on commit 3bafc97

Please sign in to comment.