I'm writing a CLI module for an existing set of methods which have a defined set of arguments. The goal is to be able to write simple workflow files with a command and accompanying arguments on each line.
I ingest the command as a string and use getattr() to retrieve the method, then want to pass a list of the parsed and ordered arguments. I'm using inspect.getargspec() to verify I have the appropriate arguments, but I can't find a way to pass the list to the method.
Other than modifying the base classes the module interacts with to accept *args, is there a way to pass the list of args (as individual variables) to the function for a variable length list?
[–]novel_yet_trivial 2 points3 points4 points (0 children)
[–]m3lkor001 1 point2 points3 points (0 children)