History

cmd: change exit code from 1 to 2 for syntax and usage errors

albertony committed 2 years ago

Commit a849fd51 parent 462a1cf4 files · +11 −11Browse files

Showing the changes to lib/exitcode/exitcode.go (1 of 4 files). Show all

Unified · Split

lib/exitcode/exitcode.go+2−2
@@ -4,10 +4,10 @@ package exitcode · 3 unmodified lines
4const (4const (
5 // Success is returned when rclone finished without error.5 // Success is returned when rclone finished without error.
6 Success = iota6 Success = iota
7 // UsageError is returned when there was a syntax or usage error in the arguments.
8 UsageError
9 // UncategorizedError is returned for any error not categorised otherwise.7 // UncategorizedError is returned for any error not categorised otherwise.
10 UncategorizedError8 UncategorizedError
9 // UsageError is returned when there was a syntax or usage error in the arguments.
10 UsageError
11 // DirNotFound is returned when a source or destination directory is not found.11 // DirNotFound is returned when a source or destination directory is not found.
12 DirNotFound12 DirNotFound
13 // FileNotFound is returned when a source or destination file is not found.13 // FileNotFound is returned when a source or destination file is not found.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t