News for hackers. Stuff that matters.
Re:Easy Python CLI with Click by kylek on Sunday August 18, 2019 @02:40PM (#20732015)
I've used Fire[0] for a few projects and have been meaning to give Click a try, but I'm not sure I like the syntax after reading through the article (holy moly decorators). Seems unwieldy to me, but does anyone have experience with both?

[0] https://github.com/google/python-fire

Re:Easy Python CLI with Click by ssivark on Sunday August 18, 2019 @02:48PM (#20732062)
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/