Exit immediately if -h or -help was passed.
This commit is contained in:
parent
bcad9b7ec3
commit
bee236881f
@ -131,5 +131,8 @@ func (f *Flagger) Parse() {
|
||||
}
|
||||
|
||||
logger.Print("Parsing CLI parameters:", os.Args)
|
||||
f.flagSet.Parse(os.Args[1:])
|
||||
err := f.flagSet.Parse(os.Args[1:])
|
||||
if err != nil {
|
||||
os.Exit(0)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user