I have function like this -
def my_func(my_list_arg=["one", "two"]):
Which I'm trying to call from command line using python-fire
.
I have tried several ways -
Attempt 1:
fire_runner.py my_func [one, two]
Results in two separate arguments "[one"
and "two]"
.
Attempt 2:
fire_runner.py my_func ["one", "two"]
which has the same result.
Attempt 3:
fire_runner.py my_func [\"one\", \"two\"]
same result.