diff options
Diffstat (limited to 'Demo/stdwin/ibrowse/ib.py')
-rwxr-xr-x | Demo/stdwin/ibrowse/ib.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Demo/stdwin/ibrowse/ib.py b/Demo/stdwin/ibrowse/ib.py new file mode 100755 index 0000000..441d8a2 --- /dev/null +++ b/Demo/stdwin/ibrowse/ib.py @@ -0,0 +1,21 @@ +#! /usr/local/python + +# Call ibrowse (the info file browser) under UNIX. + +import sys +import ibrowse + +if len(sys.argv) > 1: + file = sys.argv[1] + if len(sys.argv) > 2: + if len(sys.argv) > 3: + sys.stdout = sys.stderr + print 'usage:', sys.argv[0], '[file [node]]' + sys.exit(2) + else: + node = sys.argv[2] + else: + node = '' + ibrowse.start('(' + file + ')' + node) +else: + ibrowse.main() |