Skip to content

Commit

Permalink
chore: disable unused gui flag, we are always in tui mode
Browse files Browse the repository at this point in the history
  • Loading branch information
HikariKnight committed Mar 30, 2024
1 parent 1f059e0 commit cf47ece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ func main() {
if pArg.Flag["version"] {
fmt.Printf("QuickPassthrough Version %s\n", version.Version)
os.Exit(0)
}

if !pArg.Flag["gui"] {
} else {
downloader.CheckLsIOMMU()
internal.Tui()
}
Expand Down
4 changes: 2 additions & 2 deletions internal/params/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ func NewParams() *Params {
}

// Add all parsed arguments to a struct for portability since we will use them all over the program
pArg.addFlag("gui", *gui)
pArg.addFlag("version", *version)
/*pArg.addFlag("gpu", *gpu)
/*pArg.addFlag("gui", *gui)
pArg.addFlag("gpu", *gpu)
pArg.addFlag("usb", *usb)
pArg.addFlag("nic", *nic)
pArg.addFlag("sata", *sata)
Expand Down

0 comments on commit cf47ece

Please sign in to comment.