Hi
I am using optparser to design a command line interface.How do I read multiple arguments.
For eg if I want to create a folder, I will take the arguments path and folder name something lilke the following
main.py --createFolder Tesfolder --path C://Test/Test/...
How to read these arguments? I can get optparser to work for single argument,like this
c = cfgparse.ConfigParser()
c.add_file('name_dest.ini')
c.add_option('mail_server')
c.add_option('proxy_server', dest='proxy')
opts = c.parse()
but not with multiple args any help is appreciated
thanks
starzstar
Python Fan
Posts: 5
Joined: Tue Jan 20, 2009 4:39 am
Top