Click looks better, honestly, and I want to try it out on my next project,
but I love docopt: https://github.com/docopt/docopt
It creates the CLI off of the documentation you write following some
conventions at the top of the script. So you basically get a free interface
with flags, --help text, etc. for doing what you already should be doing,
documenting your code. Pretty excellent concept.
I'm not sure how well/easily docopt would work with an omnibus script that
is calling out to subcommands in other files, though.
On Wed, Jul 28, 2021 at 3:39 PM Brian Wu <[log in to unmask]> wrote:
> I have yet to try it, but at Pycon this year one of the talks briefly
> mentioned Typer (https://typer.tiangolo.com/) in passing, which builds on
> top of Click. Might be worth checking out in addition to Click.
> On Wed, Jul 28, 2021 at 4:45 PM Ed Summers <[log in to unmask]> wrote:
> > click is awesome. One thing that I've really loved working with it on
> > the twarc project  is that it allows people to write plugins 
> > that extend the base command in different ways with new subcommands.
> > //Ed
> >  https://twarc-project.readthedocs.io/en/latest/
> >  https://pypi.org/project/click-plugins/
> Brian Wu
> Email: [log in to unmask]