mirror of https://github.com/status-im/migrate.git
Add documentation for exit 2
This commit is contained in:
parent
95623b991f
commit
dc5b8a46c6
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue