aboutsummaryrefslogtreecommitdiffhomepage
path: root/flag.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-09-12 20:53:33 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-09-12 20:53:33 +0900
commitb0aff891661dfa2f438a7264607a4e6e9caef026 (patch)
tree323ccc8c09fee45c29e8e1e79b320a4fe6dc8d77 /flag.go
parent8223a9ee6637495c860aa3531f1db02e8c5bd819 (diff)
app: handle launch method in New function
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'flag.go')
-rw-r--r--flag.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/flag.go b/flag.go
index 8fbdc6b1..aa67908a 100644
--- a/flag.go
+++ b/flag.go
@@ -2,8 +2,6 @@ package main
import (
"flag"
-
- "git.ophivana.moe/cat/fortify/internal/app"
)
var (
@@ -38,9 +36,6 @@ func init() {
flag.BoolVar(&mustDBus, "dbus", false, "Proxy D-Bus connection")
flag.BoolVar(&mustPulse, "pulse", false, "Share PulseAudio socket and cookie")
- flag.BoolVar(&app.LaunchOptions[app.LaunchMethodSudo], "sudo", false, "Use 'sudo' to switch user")
- flag.BoolVar(&app.LaunchOptions[app.LaunchMethodMachineCtl], "machinectl", true, "Use 'machinectl' to switch user")
-
flag.BoolVar(&flagVerbose, "v", false, "Verbose output")
flag.BoolVar(&printVersion, "V", false, "Print version")
}