neithere / argh

An argparse wrapper that doesn't make you say "argh" each time you deal with it.
http://argh.rtfd.org
GNU Lesser General Public License v3.0
369 stars 55 forks source link

Keyword-only arguments as options (closes #191) #199

Closed neithere closed 11 months ago

neithere commented 11 months ago

The original workflow of func-args-to-CLI-args inferring has been split into policies from which the user can choose.

The default policy, BY_NAME_IF_HAS_DEFAULT, closely follows the pre-v.0.30 behaviour (although there's a minor breaking change).

The new and recommended policy, BY_NAME_IF_KWONLY, enables for finer control over the resulting required vs. optional and positional vs. named arguments.