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

This commit is contained in:
albertony
2024-01-27 15:31:24 +01:00
parent 462a1cf491
commit a849fd59f0
4 changed files with 11 additions and 11 deletions

View File

@ -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.