From: Harry van Haaren Date: Fri, 30 Oct 2015 14:17:58 +0000 (+0000) Subject: tools: add short alias -s to NIC binding status X-Git-Tag: spdx-start~7903 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8c91541188c911e690fb745e575763bd12faf4d2;p=dpdk.git tools: add short alias -s to NIC binding status This patch adds -s as an alias to --status in dpdk_nic_bind.py, providing a convenient shorthand. Signed-off-by: Harry van Haaren Acked-by: Ferruh Yigit --- diff --git a/tools/dpdk_nic_bind.py b/tools/dpdk_nic_bind.py index b7bd877e72..f02454e56a 100755 --- a/tools/dpdk_nic_bind.py +++ b/tools/dpdk_nic_bind.py @@ -68,7 +68,7 @@ Options: --help, --usage: Display usage information and quit - --status: + -s, --status: Print the current status of all known network interfaces. For each device, it displays the PCI domain, bus, slot and function, along with a text description of the device. Depending upon whether the @@ -477,7 +477,7 @@ def parse_args(): sys.exit(0) try: - opts, args = getopt.getopt(sys.argv[1:], "b:u", + opts, args = getopt.getopt(sys.argv[1:], "b:us", ["help", "usage", "status", "force", "bind=", "unbind"]) except getopt.GetoptError, error: @@ -489,7 +489,7 @@ def parse_args(): if opt == "--help" or opt == "--usage": usage() sys.exit(0) - if opt == "--status": + if opt == "--status" or opt == "-s": status_flag = True if opt == "--force": force_flag = True