Exit with non-zero code when trying to do interactive onboarding and --batch is set
This commit is contained in:
parent
6c49bd694f
commit
d55cccc236
4 changed files with 14 additions and 1 deletions
|
|
@ -13,7 +13,8 @@ func Run() {
|
|||
root.Cmd.Version(ooni.Version)
|
||||
_, err := root.Cmd.Parse(os.Args[1:])
|
||||
if err != nil {
|
||||
log.WithError(err).Error("failed to parse arguments")
|
||||
log.WithError(err).Error("failure in main command")
|
||||
os.Exit(1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue