[SWDEV-513958] Add help flag to valid commands (#204)
Added '-h' flag to valid first input command list
Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
[ROCm/amdsmi commit: 9b64dcb61a]
This commit is contained in:
committed by
GitHub
orang tua
f13bc29e0d
melakukan
b442530b74
@@ -105,7 +105,7 @@ if __name__ == "__main__":
|
||||
|
||||
valid_commands = ['version', 'list', 'static', 'firmware', 'bad-pages',
|
||||
'metric', 'process', 'profile', 'event', 'topology', 'set',
|
||||
'reset', 'monitor', 'xgmi', 'partition', '--help']
|
||||
'reset', 'monitor', 'xgmi', 'partition', '--help', '-h']
|
||||
|
||||
sys.argv = [arg.lower() if arg.startswith('--') or not arg.startswith('-')
|
||||
else arg for arg in sys.argv]
|
||||
|
||||
Reference in New Issue
Block a user