Skip to content
Myr

Change docs to mention how we relate to optparse

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 14c9b1a · Browse files · 1 file+5 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−8 removed

  • other:+5 added−8 removed

1 file+5 added−8 removed

modified:docs/why.rst+5 added-8 removed
17 unmodified lines
18There are many alternatives to click and you can have a look at them if19you enjoy them better. The obvious ones are ``optparse`` and ``argparse``20from the standard library.2122click is actually implemented as a wrapper around ``optparse`` and does23not implement any parsing itself. The reason it's not based on24``argparse`` is that ``argparse`` does not allow proper nesting of25commands by design and has some deficiencies when it comes to POSIX26compliant argument handling.22click is actually implemented as a wrapper around a mild fork of23``optparse`` and does not implement any parsing itself. The reason it's24not based on ``argparse`` is that ``argparse`` does not allow proper25nesting of commands by design and has some deficiencies when it comes to26POSIX compliant argument handling.2728In case ``optparse`` ever gets deprecated and removed from Python,29``click`` will ship a version of it.3028Click is designed to be fun to work with and at the same time not stand in29your way. It's not overly flexible at the same time either. Currently30for instance it does not allow you to customize the help pages too much.31This is intentional because click is designed to allow you to nest command
63 unmodified lines