diff options
author | Pablo Mazzini | 2024-03-09 15:11:24 +0000 |
---|---|---|
committer | rfjakob | 2024-03-13 10:42:53 +0100 |
commit | 8ced867c4f2a26e00e32d7703fe13aa47d9df923 (patch) | |
tree | fdbd0dd9adab015503e8d728ec71b59716a82768 /cli_args.go | |
parent | 0dfa7f8fadfa200c62f8ed9d3d08f745aa182f5b (diff) |
init_dir: use masterkey arg
Diffstat (limited to 'cli_args.go')
-rw-r--r-- | cli_args.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli_args.go b/cli_args.go index 48f1cdd..75df4d1 100644 --- a/cli_args.go +++ b/cli_args.go @@ -280,7 +280,7 @@ func parseCliOpts(osArgs []string) (args argContainer) { tlog.Fatal.Printf("The options -passfile and -masterkey cannot be used at the same time") os.Exit(exitcodes.Usage) } - if len(args.extpass) > 0 && args.masterkey != "" { + if len(args.extpass) > 0 && args.masterkey != "" && !args.init { tlog.Fatal.Printf("The options -extpass and -masterkey cannot be used at the same time") os.Exit(exitcodes.Usage) } |