From 4278a6eec8b9addbd704d6485d3d108b5c3a5593 Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Sat, 1 Apr 2023 20:37:42 +0200 Subject: [PATCH] Add SATA controllers to flags --- lib/params/params.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/params/params.go b/lib/params/params.go index bbafbc9..ce53477 100644 --- a/lib/params/params.go +++ b/lib/params/params.go @@ -63,6 +63,11 @@ func NewParams() *Params { Help: "List all Network controllers. (use -i # to only display results from specified IOMMU group)", }) + sata := parser.Flag("s", "sata", &argparse.Options{ + Required: false, + Help: "List all SATA controllers. (use -i # to only display results from specified IOMMU group)", + }) + iommu_group := parser.IntList("i", "group", &argparse.Options{ Required: false, Help: "List everything in the IOMMU groups given. Supply argument multiple times to list additional groups.", @@ -133,6 +138,7 @@ func NewParams() *Params { pArg.addFlag("gpu", *gpu) pArg.addFlag("usb", *usb) pArg.addFlag("nic", *nic) + pArg.addFlag("sata", *sata) pArg.addFlagCounter("related", *related) pArg.addStringList("ignore", *ignore) pArg.addIntList("iommu_group", *iommu_group)