main: catch "-extpass" AND "-masterkey" usage early
"The options -extpass and -masterkey cannot be used at the same time"
This commit is contained in:
parent
b2d33028a6
commit
ec4a626316
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user