mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 05:54:43 +02:00
cmd: change exit code from 1 to 2 for syntax and usage errors
This commit is contained in:
@ -4,10 +4,10 @@ package exitcode
|
||||
const (
|
||||
// Success is returned when rclone finished without error.
|
||||
Success = iota
|
||||
// UsageError is returned when there was a syntax or usage error in the arguments.
|
||||
UsageError
|
||||
// UncategorizedError is returned for any error not categorised otherwise.
|
||||
UncategorizedError
|
||||
// UsageError is returned when there was a syntax or usage error in the arguments.
|
||||
UsageError
|
||||
// DirNotFound is returned when a source or destination directory is not found.
|
||||
DirNotFound
|
||||
// FileNotFound is returned when a source or destination file is not found.
|
||||
|
Reference in New Issue
Block a user