typer v0.3.0 Release Notes
Release Date: 2020-06-24 // almost 4 years ago-
- Add support for
help
parameter in CLI arguments:- As
help
in CLI arguments is not supported by Click, there are two new internal classes (Click sub-classes) to support it: typer.core.TyperArgument
typer.core.TyperCommand
- This includes a new auto-generated help text section
Arguments
for CLI arguments, showing defaults, required arguments, etc. - It's also possible to disable it and keep the previous behavior, not showing automatic help for CLI arguments (Click's default) using the
hidden
parameter. - Now
show_default
isTrue
by default. - And now
show_envvar
isTrue
by default. - So, default values and env vars are shown in the help text by default, without having to manually enable them, for both CLI arguments and CLI options.
- New docs:
- CLI Arguments Intro.
- Optional CLI Arguments.
- CLI Arguments with Default.
- CLI Arguments with Help.
- CLI Arguments with Environment Variables.
- CLI Arguments: Other uses.
- CLI arguments with tuples.
- Lot's of tests for all the new examples in the new docs, keeping coverage at 100%.
- PR #123.
- As
- 📦 Add docs for calling packages with
python -m some_package
using__main__.py
: Building a Package: Supportpython -m
. PR #121. - Add support for
*args
and**kwargs
when calling the Typer app, just like in Click. PR #120 by @teymour-aldridge. - 🛠 Fix typos in README and main docs #103 by @mrcartoonster.
- 🛠 Fix typo in docs. PR #98 by @mrcartoonster.
- 🛠 Fix typos and rewording in docs. PR #97 by @mrcartoonster.
- ⚡️ Update GitHub Action issue-manager. PR #114.
- Add support for