diff options
Diffstat (limited to 'cli_args.go')
-rw-r--r-- | cli_args.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli_args.go b/cli_args.go index 036de9b..1c9400c 100644 --- a/cli_args.go +++ b/cli_args.go @@ -146,6 +146,10 @@ func parseCliOpts() (args argContainer) { if args.passfile != "" { args.extpass = "/bin/cat " + args.passfile } + if args.extpass != "" && args.masterkey != "" { + tlog.Fatal.Printf("The options -extpass and -masterkey cannot be used at the same time") + os.Exit(ErrExitUsage) + } return args } |