diff options
| author | Hugo Hromic <[email protected]> | 2024-06-29 15:42:05 +0100 |
|---|---|---|
| committer | Hugo Hromic <[email protected]> | 2024-06-29 15:44:50 +0100 |
| commit | a7c40c36a3a425dd1d28cbc97a3340aafb494d19 (patch) | |
| tree | e6277a9c3ab651484c233da699fa90874fcdf3ee /parse.go | |
| parent | bee5cf5d7cc07c41b2a528052bfba0566b5069c0 (diff) | |
Use standard exit status code for usage errors
* The stdlib `flags` package and most command line utilities use status code `2`.
Diffstat (limited to 'parse.go')
| -rw-r--r-- | parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -90,7 +90,7 @@ func mustParse(config Config, dest ...interface{}) *Parser { p, err := NewParser(config, dest...) if err != nil { fmt.Fprintln(config.Out, err) - config.Exit(-1) + config.Exit(2) return nil } |
