I need to create an "interface" to my script such that (runs by crontab):
- When --help, terminal will display a list of choices (well formatted, separate by \n)
- allow multiple choices input (comma delimited)
e.g. (something like the following)
python feedAnimals.py --help
...... Choices:
dog
cat
fish
python feedAnimals.py --pets dog,cat,fish
Is there anyway to do this with type="choices"
?
Or can I use type="string"
? I tried to insert \n
between choices under the "help" option, but these seems to be neglected at run time.
Must be python 2.4 compatible :(