From 40d0550ad3f450ce8bb597b851a2db9721b7d6f6 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Fri, 13 Sep 2024 11:49:10 +0900 Subject: flag: move method flag from main Signed-off-by: Ophestra Umiker --- main.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 85ac5a82..ebd5970b 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,6 @@ import ( "git.ophivana.moe/cat/fortify/internal/app" "git.ophivana.moe/cat/fortify/internal/state" "git.ophivana.moe/cat/fortify/internal/system" - "git.ophivana.moe/cat/fortify/internal/util" "git.ophivana.moe/cat/fortify/internal/verbose" ) @@ -31,15 +30,6 @@ var ( launchOptionText string ) -func init() { - methodHelpString := "Method of launching the child process, can be one of \"sudo\", \"bubblewrap\"" - if util.SdBootedV { - methodHelpString += ", \"systemd\"" - } - - flag.StringVar(&launchOptionText, "method", "sudo", methodHelpString) -} - func tryVersion() { if printVersion { fmt.Println(Version) -- cgit v1.3.1