biocore / pyqi

Tools for developing and testing command line interfaces in Python.
Other
9 stars 13 forks source link

Optparse doesn't support 'choice' and 'mchoice' option types #251

Open josenavas opened 10 years ago

josenavas commented 10 years ago

Although they are defined in PyqiOption, there is no way of providing the list of available values in the config module: OptparseOption does not support the Choices keyword argument.

The __init__ function of OptparseOption should be modified as it is done in HTMLInputOption.

This is required for #249

jairideout commented 10 years ago

Related to/possible duplicate of #240

josenavas commented 10 years ago

I think it is related but not duplicate: #240 is for supporting the choice (or multiple_choice) at command level (note that here is for OptparseOption - and it is support by PyqiOption but currently can never be used).

jairideout commented 10 years ago

Good point

josenavas commented 10 years ago

I'm working on this issue, so it can be assigned to me.

jairideout commented 10 years ago

@josenavas assigned, thanks!