Re: python getopt functionality

2005-10-03 Thread Micah Elliott
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

Re: python getopt functionality

2005-10-03 Thread M.N.A.Smadi
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

Re: python getopt functionality

2005-10-03 Thread Michael
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

Re: python getopt functionality

2005-10-03 Thread Fredrik Lundh
"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

python getopt functionality

2005-10-03 Thread M.N.A.Smadi
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