4 ms·
Convenient. I especially like that it has a completion-helper. The docs seem to go to great lengths to not state this clearly, but it works fine on bare funct
by Groxx 10y ago
Convenient. I especially like that it has a completion-helper.
The docs seem to go to great lengths to not state this clearly, but it works fine on bare functions too:
example.py:
import fire
def test(a="yes"):
print "a: " + a
fire.Fire(test)
cli:
$ python example.py
a: yes
$ python example.py no
a: no
$ python example.py --a maybe
a: maybe