From 88f5e8d76e4d13b627ec1dbf8a428d01ae1a8771 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 10 Aug 2021 19:09:12 +0200 Subject: [PATCH] main: show specific error on command line parse failure --- cli_args.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli_args.go b/cli_args.go index f5fecd7..d37ca34 100644 --- a/cli_args.go +++ b/cli_args.go @@ -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