Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I really like Click, a Python library for building CLI programs. But one of the things that really bugs me about it is that by default it only uses --help for its help, leaving -h unbound. I have to add @click.help_options('-h', '--help') to every program I write just to get the behavior I think should be the default.
If you haven't used typer, give it a whirl. It's built on top of click but has a nicer interface (and does bind both -h and --help by default)
Not by default on stdlib. There are libraries available though - https://github.com/spf13/pflag
The same person makes the most commonly used CLI application library (https://github.com/spf13/cobra) which uses pflag by default.