[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


[ROCm/amdsmi commit: fc7e1ddb4a]
Cette révision appartient à :
Bindhiya Kanangot Balakrishnan
2024-11-15 14:44:50 -06:00
révisé par Maisam Arif
Parent 835b438186
révision bfd480c6ba
2 fichiers modifiés avec 21 ajouts et 0 suppressions
+19
Voir le fichier
@@ -4,6 +4,25 @@ Full documentation for amd_smi_lib is available at [https://rocm.docs.amd.com/pr
***All information listed below is for reference and subject to change.***
## amd_smi_lib for ROCm 6.4.0
### Added
### Changed
### Removed
### Optimized
- **Modified `amd-smi` CLI to allow case insensitive arguments if the argument does not begin with a single dash**.
- With this change `amd-smi version` and `amd-smi VERSION` will now yield the same output.
- `amd-smi static --bus` and `amd-smi STATIC --BUS` will produce identical results.
- `amd-smi static -b` and `amd-smi static -B` will still return different results (-b for bus and -B for board).
### Resolved issues
### Upcoming changes
## amd_smi_lib for ROCm 6.3.0
### Added
+2
Voir le fichier
@@ -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