main: show specific error on command line parse failure

This commit is contained in:
Jakob Unterwurzacher 2021-08-10 19:09:12 +02:00
parent 527e72bf80
commit 88f5e8d76e

View File

@ -251,7 +251,7 @@ func parseCliOpts() (args argContainer) {
os.Exit(0)
}
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)
}
// We want to know if -scryptn was passed explicitly