From 8ced867c4f2a26e00e32d7703fe13aa47d9df923 Mon Sep 17 00:00:00 2001 From: Pablo Mazzini Date: Sat, 9 Mar 2024 15:11:24 +0000 Subject: init_dir: use masterkey arg --- cli_args.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli_args.go') 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) } -- cgit v1.2.3