[Tutor] Testing Membership in a Sequence
Kalle Svensson
kalle at lysator.liu.se
Tue Mar 16 10:15:23 EST 2004
[Christian Wyglendowski]
> What I am actually trying to do is look for command line options in
> sys.argv.
>
> if '-o' in sys.argv or '--option' in sys.argv:
> apply_option()
In that case you might want to take a look at the optparse module.
Peace,
Kalle
--
Kalle Svensson, http://www.juckapan.org/~kalle/
Student, root and saint in the Church of Emacs.
More information about the Tutor
mailing list