Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate implementation of default arguments: document in description and set post-argparse #85

Open
gdevenyi opened this issue Apr 26, 2016 · 4 comments
Assignees
Milestone

Comments

@gdevenyi
Copy link
Member

See comment here:
http://python.6.x6.nabble.com/argparse-tell-if-arg-was-defaulted-tp1528162p1528165.html

This means having unset defaults in argparse, and then setting the values after parsing by checking for none.

I think this would resolve the chunk_size and ppj metaprogramming, my issues with the list appending, and possible other magics in a saner way.

Thoughts?

@pipitone
Copy link
Collaborator

pipitone commented Apr 27, 2016 via email

@gdevenyi
Copy link
Member Author

That's what my thought was. I think that would make the code quite a bit cleaner.

@pipitone
Copy link
Collaborator

pipitone commented Apr 27, 2016 via email

@pipitone
Copy link
Collaborator

I'm good with this.

@gdevenyi gdevenyi self-assigned this May 12, 2016
@gdevenyi gdevenyi changed the title Question: Alternate implementation of default arguments: document in description and set post-argparse Alternate implementation of default arguments: document in description and set post-argparse Jun 23, 2016
@gdevenyi gdevenyi added this to the 1.1 milestone Jul 6, 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

No branches or pull requests

2 participants