alces-software / adminware

A sandbox CLI for running commands remotely across nodes
1 stars 0 forks source link

Fix/argument robustness #183

Open DavidMarchant opened 5 years ago

DavidMarchant commented 5 years ago

Fixes #179

generally makes tool arguments more robust

Stops breakage if an argument is just an integer Stops breakage if argument contains any uppercase characters and handles this as well as possible. All argument names are treated as lowercase, so input, INPUT and InPuT are one and the same. This is the best possible outcome as we loose info when a command's callback is called by click code; the dict that returns is downcased. https://github.com/alces-software/adminware/blob/develop/src/appliance_cli/command_generation.py#L136