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
44 const (
55 // Success is returned when rclone finished without error.
66 Success = iota
7− // UsageError is returned when there was a syntax or usage error in the arguments.
8− UsageError
97 // UncategorizedError is returned for any error not categorised otherwise.
108 UncategorizedError
9+ // UsageError is returned when there was a syntax or usage error in the arguments.
10+ UsageError
1111 // DirNotFound is returned when a source or destination directory is not found.
1212 DirNotFound
1313 // 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