Add documentation for exit 2

This commit is contained in:
Yohan Robert 2019-08-09 15:15:29 +02:00
parent 95623b991f
commit dc5b8a46c6
1 changed files with 3 additions and 0 deletions

View File

@ -262,6 +262,9 @@ Database drivers: `+strings.Join(database.List(), ", ")+"\n")
default:
flag.Usage()
// If a command is not found we exit with a status 2 to match the behavior
// of flag.Parse() with flag.ExitOnError when parsing an invalid flag.
os.Exit(2)
}
}