summaryrefslogtreecommitdiff
path: root/cli_args.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-06-25 21:55:20 +0200
committerJakob Unterwurzacher2018-07-01 20:56:22 +0200
commit8e5ca7299a3292cae64418aaf875819c2cca01f5 (patch)
treeecaf407e80e2acd2faa34ccfca859d7732f4eaed /cli_args.go
parent4bf02f476034f6a30a378769cda323e0ce5ae59f (diff)
trezor: exit with usage error if used together with -extpass
Using an external program for the Trezor PIN is not supported at the moment.
Diffstat (limited to 'cli_args.go')
-rw-r--r--cli_args.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli_args.go b/cli_args.go
index 7e8deeb..69e8bdf 100644
--- a/cli_args.go
+++ b/cli_args.go
@@ -221,6 +221,10 @@ func parseCliOpts() (args argContainer) {
tlog.Fatal.Printf("The options -extpass and -masterkey cannot be used at the same time")
os.Exit(exitcodes.Usage)
}
+ if args.extpass != "" && args.trezor {
+ tlog.Fatal.Printf("The options -extpass and -trezor cannot be used at the same time")
+ os.Exit(exitcodes.Usage)
+ }
return args
}