Allow multiple instances of one option #2

Closed
buchuki opened this Issue Jun 14, 2009 · 1 comment

Comments

Projects
None yet
1 participant
@buchuki
Owner

buchuki commented Jun 14, 2009

It should be possible to allow repeated options; I think OptionParser allows this.

Something like:

./myprog -v -v to make things 'more verbose'

I think to specify this is allowed, the option could just have an empty list as its default value instead of None.

@buchuki

This comment has been minimized.

Show comment Hide comment
@buchuki

buchuki Jun 21, 2009

Owner

Turns out this was already supported; just set the action to 'append'. I added three tests to ensure this works as expected. Closed in b19e713

Owner

buchuki commented Jun 21, 2009

Turns out this was already supported; just set the action to 'append'. I added three tests to ensure this works as expected. Closed in b19e713

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment