Added 'description' class attribute to every command class (to help the
[python/dscho.git] / Demo / ibrowse / ib.py
blobce6e16a2fcacc0c0243dfc859b633cf2e6dac090
1 #! /usr/bin/env python
3 # Call ibrowse (the info file browser) under UNIX.
5 import sys
6 import ibrowse
8 if len(sys.argv) > 1:
9 file = sys.argv[1]
10 if len(sys.argv) > 2:
11 if len(sys.argv) > 3:
12 sys.stdout = sys.stderr
13 print 'usage:', sys.argv[0], '[file [node]]'
14 sys.exit(2)
15 else:
16 node = sys.argv[2]
17 else:
18 node = ''
19 ibrowse.start('(' + file + ')' + node)
20 else:
21 ibrowse.main()