repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added 'description' class attribute to every command class (to help the
[python/dscho.git]
/
Demo
/
ibrowse
/
ib.py
blob
ce6e16a2fcacc0c0243dfc859b633cf2e6dac090
1
#! /usr/bin/env python
2
3
# Call ibrowse (the info file browser) under UNIX.
4
5
import
sys
6
import
ibrowse
7
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
()