mirror of
https://github.com/status-im/migrate.git
synced 2025-02-23 00:08:06 +00:00
Merge pull request #260 from groyoh/exit_status
Change exit status to 2 on command error
This commit is contained in:
commit
6c7d3123c2
@ -262,6 +262,9 @@ Database drivers: `+strings.Join(database.List(), ", ")+"\n")
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
flag.Usage()
|
flag.Usage()
|
||||||
os.Exit(0)
|
|
||||||
|
// 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…
x
Reference in New Issue
Block a user