usertools: fix binding regex or misc device
The "misc" and "regex" device classes were missing from the list used to
check arguments, preventing them from being used with "--status-dev"
flag to list only devices of those types.
When adding them to the list, the list is also sorted alphabetically for
consistency.
Bugzilla ID: 582
Fixes: 81255f27c6
("usertools: replace optparse with argparse")
Reported-by: Wei Ling <weix.ling@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Tested-by: Yu Jiang <yux.jiang@intel.com>
This commit is contained in:
parent
72bf1b5d80
commit
f32fed83db
@ -634,7 +634,8 @@ def parse_args():
|
||||
parser.add_argument(
|
||||
'--status-dev',
|
||||
help="Print the status of given device group.",
|
||||
choices=['net', 'baseband', 'crypto', 'event', 'mempool', 'compress'])
|
||||
choices=['baseband', 'compress', 'crypto', 'event',
|
||||
'mempool', 'misc', 'net', 'regex'])
|
||||
bind_group = parser.add_mutually_exclusive_group()
|
||||
bind_group.add_argument(
|
||||
'-b',
|
||||
|
Loading…
Reference in New Issue
Block a user