Skip to content

Commit a0f8888

Browse files
authored
Remove Python 2 from docs (#90)
1 parent d5d2422 commit a0f8888

File tree

4 files changed

+13
-60
lines changed

4 files changed

+13
-60
lines changed

README.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ create command-line interfaces.
4747
if __name__ == '__main__':
4848
run(hello_world)
4949
50-
Python 2.7 is supported through `decorators
51-
<http://clize.readthedocs.io/en/stable/reference.html#named-param-py2>`_.
52-
5350
The python code above can now be used on the command-line as follows:
5451

5552
.. code-block:: console

examples/README.rst

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,12 @@ Examples
1111
Greets a person or the world. Demonstrates the specification of positional
1212
and named optional parameters.
1313

14-
``hello.py2.py``
15-
Python 2-compatible version of the above example.
16-
1714
``echo.py``
1815
Prints back some text. Demonstrates the use of ``*args``-like parameters to
1916
collect all arguments, flags, short aliases for named parameters, using
2017
``ArgumentError`` for arbitrary requirements, as well as supplying an
2118
alternate action to ``run``.
2219

23-
``echo.py2.py``
24-
Python 2-compatible version of the above example.
25-
2620
``altcommands.py``
2721
Demonstrates the specification of alternate actions.
2822

@@ -56,3 +50,16 @@ Examples
5650
``logparam.py``
5751
Extends ``FlagParameter`` with an alternate value converter, fixing the
5852
default value display.
53+
54+
``typed_cli.py``
55+
Demonstrates concurrent usage of Clize and mypy.
56+
57+
``naval.py``
58+
Clize version of `docopt`_'s "naval fate" example.
59+
60+
``interop.py``
61+
Demonstrates using a different argument parser (here, `argparse`_)
62+
among other commands that use Clize.
63+
64+
.. _argparse: https://docs.python.org/3/library/argparse.html
65+
.. _docopt: http://docopt.org/

examples/echo.py2.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

examples/hello.py2.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)