From 8e5ca7299a3292cae64418aaf875819c2cca01f5 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 25 Jun 2018 21:55:20 +0200 Subject: trezor: exit with usage error if used together with -extpass Using an external program for the Trezor PIN is not supported at the moment. --- cli_args.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli_args.go') 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 } -- cgit v1.2.3