Skip to content
Myr

Clarify optparse relationship

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

authored by Armin Ronacher · committed by GitHub · parent b9a72b4 · Browse files · 1 file+5 added−5 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−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:docs/why.rst+5 added-5 removed
20 unmodified lines
21There are many alternatives to Click and you can have a look at them if22you enjoy them better. The obvious ones are ``optparse`` and ``argparse``23from the standard library.2425Click is actually implemented as a wrapper around a mild fork of26``optparse`` and does not implement any parsing itself. The reason it's27not based on ``argparse`` is that ``argparse`` does not allow proper28nesting of commands by design and has some deficiencies when it comes to29POSIX compliant argument handling.25Click is actually implements its own parsing of arugments and does not use26``optparse`` or ``argparse`` following the ``optparse`` parsing behavior.27The reason it's not based on ``argparse`` is that ``argparse`` does not28allow proper nesting of commands by design and has some deficiencies when29it comes to POSIX compliant argument handling.3031Click is designed to be fun to work with and at the same time not stand in32your way. It's not overly flexible either. Currently, for instance, it33does not allow you to customize the help pages too much. This is intentional
119 unmodified lines