Python Fire, a library for automatically generating command line interfaces (opensource.googleblog.com) 6 points by tempw 9y ago ↗ HN
[–] jijojv 9y ago ↗ Meh just ok for POC. Take the time to build a proper cli which tells you all the parameters and args it would take.$ ./example.py Type: Example String form: <__main__.Example object at 0x10674d890> File: ~/tmp/example.pyUsage: ./example.py ./example.py hello$ ./example.py hello Hello world!$ ./example.py hello adsf Hello adsf!
1 comment
[ 0.21 ms ] story [ 6.9 ms ] thread$ ./example.py Type: Example String form: <__main__.Example object at 0x10674d890> File: ~/tmp/example.py
Usage: ./example.py ./example.py hello
$ ./example.py hello Hello world!
$ ./example.py hello adsf Hello adsf!