6.11.1. Test 4: generic getoptions module

6.11.1. Test 4: generic getoptions module

On-the-fly python test script follows.
Start python section from options.ipk
    47: from interscript import getoptions
    48: args = ['--longopt', '--longopt-value=value', '-short', '-shortval=val2','filename']
    49: result = getoptions.getopt(args)
    50: print result
End python section from options.ipk
Actual output follows.
Start output section of /usr/local/bin/python /usr/tmp/@13003.1537_test.py
     1: Interscript Package: version 1.0a7 build 1253
     2: Using iscrcopt
     3: thread available
     4: Interscript version 1.0a7 build 1253
     5: Built by root on ruby at Mon Nov 09, 1998 at 07:08 PM (UTC)
     6: Generated by 1.0a7 buildno 1252 host ruby
     7: at Mon Nov 09, 1998 at 07:08 PM (UTC)
     8: [([('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')]
End output section to /usr/local/bin/python /usr/tmp/@13003.1537_test.py