python-fire
python-fire copied to clipboard
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
You already mentioned to plan to add a strict mode to python-fire in https://github.com/google/python-fire/issues/221 and https://github.com/google/python-fire/issues/222. I would highly appreciate this, so I am opening a new issue for this....
Consider a simple program: ``` import fire def add(a, zero=0): print('calculating...') print(a + zero) if __name__ == '__main__': fire.Fire(add) ``` And then suppose we make a typo in the argument...
I have a file called `neptune` that just has some standalone functions, no classes or groups. I create my cli by doing ``` if __name__ == '__main__': fire.Fire() ``` When...
Hi! Fix issue #382 After a lot of research I found out that the only way (I'm 99% sure about this) of knowing if a function belongs to a class...
There are small typos in: - fire/console/console_attr.py - fire/custom_descriptions.py Fixes: - Should read `support` rather than `suport`. - Should read `pertinent` rather than `pertinant`. - Should read `environment` rather than...
How can add argument multiple times? For example, in the multiply example, how to pass arbitrary number of integers with flags like this - -------------------------- python calculate.py multiply -x 1...
Fire's arg parser truncates strings with hashes (#) in them. Simple test: test.py: ``` import fire def test(a): print(a, type(a)) fire.Fire(test) ``` ``` > python test.py hi#there hi > python...
Thanks for creating Fire. It's a fantastic argument parsing tool. A minor request: I prefer my help strings to be printed to stdout instead of a console like `less`. When...
Updated few formatting of text for improvement of this document. @googlebot I signed it!