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

Initial environment variable for batch options, simply appends to existing list #80

Closed
wants to merge 1 commit into from

Conversation

gdevenyi
Copy link
Member

This really should override the existing list, but this is currently unsupported in argparse

Only documentation I could find provides example code that doesn't work (anymore?)

@pipitone
Copy link
Collaborator

Could you write a custom action to deal with this?

@pipitone
Copy link
Collaborator

i.e. action checks that if appending to the default list, just replace it, otherwise append

@gdevenyi
Copy link
Member Author

That's the idea, but my python-fu isn't strong enough to do it.

@pipitone
Copy link
Collaborator

Check out PR #83. I create an int subclass to mark default values. You could do the same with lists. It's not perfect, but it works.

@gdevenyi
Copy link
Member Author

Hrm. I was thinking of replacing the argparse handler as per various discussions around. This probably much more doable.

@gdevenyi
Copy link
Member Author

Should be handled via #85

@gdevenyi gdevenyi closed this May 10, 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.

2 participants