Skip to content

Commit

Permalink
cmd: Docs for configargparse.
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Dec 11, 2018
1 parent 1b49ebe commit 8581360
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pytool/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ class Command(object):
class is designed to be used with the ``console_scripts`` entry point to
create Python-based commands for your packages.
.. versionadded:: 3.11.0
If the `configargparse <https://github.com/bw2/ConfigArgParse>`_
library is installed, Pytool will automatically use that as a drop-in
replacement for the stdlib `argparse
<https://docs.python.org/3/howto/argparse.html>`_ module that is used
by default.
You should use :meth:`parser_opts` to give additional configuration
arguments if you want to enable `configargparse` features like
automatically using environment variables.
**Hello world example**::
# hello.py
Expand Down

0 comments on commit 8581360

Please sign in to comment.