summaryrefslogtreecommitdiff
path: root/cli_args.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-10 19:09:12 +0200
committerJakob Unterwurzacher2021-08-10 19:09:12 +0200
commit88f5e8d76e4d13b627ec1dbf8a428d01ae1a8771 (patch)
tree03fc44897d21556c5506bd11fe6f77a4dd9b801b /cli_args.go
parent527e72bf80bc6de943b13b197be4a2028631feba (diff)
main: show specific error on command line parse failure
Diffstat (limited to 'cli_args.go')
-rw-r--r--cli_args.go2
1 files changed, 1 insertions, 1 deletions
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