[SWDEV-498507] Tool amd-smi could be more case insensitive

Modified amdsmi_cli to accept case insensitive arguments if
the argument does not start with a single dash(-).

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
Change-Id: I1b6320db0afaad0900d5a2049206002c3899fa71
Este cometimento está contido em:
Bindhiya Kanangot Balakrishnan criou e Maisam Arif cometeu 2024-12-02 18:09:45 -05:00
1 ascendente 664ade7354
cometimento fc7e1ddb4a
2 ficheiros modificados
+21

Não existem ficheiros que correspondam à sua pesquisa

+2
Ver ficheiro
@@ -100,6 +100,8 @@ if __name__ == "__main__":
except NameError:
logging.debug("argcomplete module not found. Autocomplete will not work.")
sys.argv = [arg.lower() if arg.startswith('--') or not arg.startswith('-')
else arg for arg in sys.argv]
args = amd_smi_parser.parse_args(args=None if sys.argv[1:] else ['--help'])
# Handle command modifiers before subcommand execution