I have a simple test python-fire cli program in python 2.7.15
import fire
class Math:
def add(x, y):
"""add"""
return x + y
def multiply(x, y):
"""multiply"""
return x * y
if __name__ == '__main__':
fire.Fire(Math)
If I write
python-fire-test.py
the response from the program is
Type: instance
String form: <__main__.Math instance at 0x0000000003CE89C8>
Usage: python-fire-test.py
python-fire-test.py add
python-fire-test.py multiply
However I don't expect to see
Type: instance
String form: <__main__.Math instance at 0x0000000003CE89C8>
printed at the top. Can I stop this behaviour?