Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import getopt
- opts, args = getopt.getopt(['--noarg',
- '--witharg', 'val',
- '--witharg2=another',
- ],
- '',
- ['noarg', 'witharg=', 'witharg2='])
- for opt in opts:
- print opt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement