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
1 changed files with 1 additions and 1 deletions

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