main: show specific error on command line parse failure
This commit is contained in:
parent
527e72bf80
commit
88f5e8d76e
@ -251,7 +251,7 @@ func parseCliOpts() (args argContainer) {
|
|||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
tlog.Fatal.Printf("Invalid command line: %s. Try '%s -help'.", prettyArgs(), tlog.ProgramName)
|
tlog.Fatal.Printf("Invalid command line: %s: %v. Try '%s -help'.", prettyArgs(), err, tlog.ProgramName)
|
||||||
os.Exit(exitcodes.Usage)
|
os.Exit(exitcodes.Usage)
|
||||||
}
|
}
|
||||||
// We want to know if -scryptn was passed explicitly
|
// We want to know if -scryptn was passed explicitly
|
||||||
|
Loading…
Reference in New Issue
Block a user