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

This commit is contained in:
albertony committed 2024-09-20 18:51:08 +02:00
1 parent 462a1cf491
commit a849fd59f0
4 files changed
+11 -11

No files matched your search

+2 -2
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.