9 from optparse
import OptionParser
11 # optparse missing, e.g. in Python 2.2
15 parser
= OptionParser()
16 parser
.add_option("-l", "--line_number", type='int',
17 dest
="line_number", default
=None,
18 help="start editor at given line number")
20 (options
, args
) = parser
.parse_args()
21 line_number
= options
.line_number
26 EditWindow
.EditWindow(file, line_number
= line_number
)
27 except EditWindow
.Abort
:
30 EditWindow
.EditWindow()