blob: 588270ed490a4cd62f842a357b6e0fe481a1cf8d [file] [log] [blame]
Guido van Rossum4128ded1992-12-14 14:53:08 +00001#! /usr/local/bin/python
Guido van Rossum9cf8f331992-03-30 10:54:51 +00002
3# Call ibrowse (the info file browser) under UNIX.
4
5import sys
6import ibrowse
7
8if 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)
20else:
21 ibrowse.main()