diff --git a/cmd/spectre/main.go b/cmd/spectre/main.go index 25bffd4c39bd4c0be8b3a77113dcae31f7c02888..e457293d61c5920c88d728cdcce953a785a51a3b 100644 --- a/cmd/spectre/main.go +++ b/cmd/spectre/main.go @@ -29,9 +29,6 @@ fs.StringVar(usernameFlag, "u", *usernameFlag, "--username") secretFlag := fs.String("secret", "", "secret") fs.StringVar(secretFlag, "s", *secretFlag, "--secret") - "strings" - fs.StringVar(secretFileFlag, "f", *secretFileFlag, "--secret-file") - ) fs.IntVar(counterFlag, "c", *counterFlag, "--counter") baseFlag := fs.String("base", "com.lyndir.masterpassword", "scoper base") @@ -60,14 +57,6 @@ } if templateFlag == "" { templateFlag = scopeFlag.DefaultTemplate() - } - - if *secretFileFlag != "" { - secret, err := os.ReadFile(*secretFileFlag) - if err != nil { - return "", err - } - *secretFlag = strings.TrimSpace(string(secret)) } if *usernameFlag == "" || *secretFlag == "" || fs.NArg() < 1 {