47: from interscript import getoptions 48: args = ['--longopt', '--longopt-value=value', '-short', '-shortval=val2','filename'] 49: result = getoptions.getopt(args) 50: print result
1: [([('longopt', None), ('longopt-value', 'value'), ('s', None), ('h', None), ('o', None), ('r', None), ('t', None), ('s', None), ('h', None), ('o', None), ('r', None), ('t', None), ('v', None), ('a', None), ('l', 'val2')], 'filename')]