Skip to content

Reworked argument handling#808

Merged
inclement merged 12 commits into
kivy:masterfrom
inclement:cleanup
Jul 2, 2016
Merged

Reworked argument handling#808
inclement merged 12 commits into
kivy:masterfrom
inclement:cleanup

Conversation

@inclement

@inclement inclement commented Jul 1, 2016

Copy link
Copy Markdown
Member

Not for merging quite yet, there are probably a few bugs left.

Everything now uses a single set of argparse subcommands, with arguments evaluated in one place and the args object passed to the methods, rather than the nester ArgumentParsers that were used before. This makes the structure clearer as arguments are managed in just one place, and allows argparse's automatic help to work propely (i.e. p4a commandname --help now returns useful info).

This could be improved further, e.g. probably separating out dist args to a separate parent parser rather than letting all commands accept them, but I think it can be merged in the current state as mostly a reworking rather than changing much internal behaviour.

@inclement inclement merged commit c137ea5 into kivy:master Jul 2, 2016
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