Based on the examples in the article, explicitly writing a line for each CLI option seems like excessive boilerplate and verbosity that Fire manages to sidestep completely. To me, this is the principal point of using a Python library to create CLIs. Am I missing something?
Re:Easy Python CLI with Click
by chupasaurus on Sunday August 18, 2019 @07:35PM
(#20733647)
Fire works with bare args, automatically supports --arg=value for constructor's arguments and provides more features like tracing and bash completion generator.
Re:Easy Python CLI with Click
by jblarneyforward on Monday August 19, 2019 @01:24AM
(#20735098)
I liked fire a lot, gets kinda goofy sometimes (and it looks abnormal in exceptions). If you can use python 3 - defopt is simpler and less visually noisy on errors https://defopt.readthedocs.io/en/stable/
[0] https://github.com/google/python-fire