On Oct 03, M.N.A.Smadi wrote:
> It is not clear to me if i can define `mandatory' options? That sounds
> strange but let say that the command `requires ' a value for -z or
> --zoo (either or should be find but one and only one of them MUST be
> present). Can i do that with resorting to using if st
It is not clear to me if i can define `mandatory' options? That sounds
strange but let say that the command `requires ' a value for -z or --zoo
(either or should be find but one and only one of them MUST be
present). Can i do that with resorting to using if statements?
thanks
moe smadi
Fredrik
M.N.A.Smadi wrote:
> I have a perl script that I need to port to python. The script takes
> input from the command line. Is there a standard way of processing
> command line arguments based on the -flag preceeding the argument?
Yes.
# pydoc getopt
Help on module getopt:
NAME
getopt - Parse
"M.N.A.Smadi" wrote:
> I have a perl script that I need to port to python. The script takes
> input from the command line. Is there a standard way of processing
> command line arguments based on the -flag preceeding the argument?
http://docs.python.org/lib/module-getopt.html
http://docs.python.o
hi;
I have a perl script that I need to port to python. The script takes
input from the command line. Is there a standard way of processing
command line arguments based on the -flag preceeding the argument?
thanks
moe smadi
--
http://mail.python.org/mailman/listinfo/python-list