X Tutup
Skip to content

Now arguments are also returned as attributes.#482

Open
set-soft wants to merge 1 commit intodocopt:masterfrom
set-soft:options_as_attrs
Open

Now arguments are also returned as attributes.#482
set-soft wants to merge 1 commit intodocopt:masterfrom
set-soft:options_as_attrs

Conversation

@set-soft
Copy link

In addition to the old mechanism:

args = docopt(__doc__)
if args['--verbose']:
...

Now can also use:

args = docopt(__doc__)
if args.verbose:
...

This makes easier to replace argparse by docopt.

In addition to the old mechanism:
```
args = docopt(__doc__)
if args['--verbose']:
...
```
Now can also use:
```
args = docopt(__doc__)
if args.verbose:
...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup