Skip to content

Commit d3f8dd5

Browse files
committed
Allow exit codes from 125 to 255
1 parent acc67ff commit d3f8dd5

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 5.1.0
2+
3+
## Features
4+
5+
- Allow [exit codes](README.md#-exitcode) from 125 to 255.
6+
17
# 5.0.1
28

39
## Documentation

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ _Default_: `1`
105105

106106
Process [exit code](https://en.wikipedia.org/wiki/Exit_status).
107107

108-
Note: when passing invalid `options`, the exit code is always `125`.
108+
We recommend values between 1 and 124 because the following exit codes have some
109+
special meaning:
110+
111+
- 0: success
112+
- 125: invalid [`options`](#options)
113+
- 126 to 255: used by shells like Bash
109114

110115
### 📕 stack
111116

0 commit comments

Comments
 (0)