feat: modify return codes

Modify exit codes. `cheat` now returns an exit code value `2` on errors
pertaining to a cheatsheet not being found.

BREAKING CHANGE
This commit is contained in:
Chris Lane
2020-06-25 18:38:03 -04:00
parent 59d5c96c24
commit 49afd7c16b
6 changed files with 22 additions and 6 deletions

View File

@ -203,6 +203,13 @@ If set, autocompletion scripts will attempt to integrate with
\f[B]fzf\f[].
.RS
.RE
.SH RETURN VALUES
.IP "0." 3
Successful termination
.IP "1." 3
Application error
.IP "2." 3
Cheatsheet(s) not found
.SH BUGS
.PP
See GitHub issues: <https://github.com/cheat/cheat/issues>

View File

@ -163,6 +163,15 @@ set, all other config paths will be ignored.
: If set, autocompletion scripts will attempt to integrate with **fzf**.
RETURN VALUES
=============
0. Successful termination
1. Application error
2. Cheatsheet(s) not found
BUGS
====