Skip to content

Commit cf47ece

Browse files
committed
chore: disable unused gui flag, we are always in tui mode
1 parent 1f059e0 commit cf47ece

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cmd/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ func main() {
1818
if pArg.Flag["version"] {
1919
fmt.Printf("QuickPassthrough Version %s\n", version.Version)
2020
os.Exit(0)
21-
}
22-
23-
if !pArg.Flag["gui"] {
21+
} else {
2422
downloader.CheckLsIOMMU()
2523
internal.Tui()
2624
}

internal/params/params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ func NewParams() *Params {
7878
}
7979

8080
// Add all parsed arguments to a struct for portability since we will use them all over the program
81-
pArg.addFlag("gui", *gui)
8281
pArg.addFlag("version", *version)
83-
/*pArg.addFlag("gpu", *gpu)
82+
/*pArg.addFlag("gui", *gui)
83+
pArg.addFlag("gpu", *gpu)
8484
pArg.addFlag("usb", *usb)
8585
pArg.addFlag("nic", *nic)
8686
pArg.addFlag("sata", *sata)

0 commit comments

Comments
 (0)