1
|
1 |
"""optik
|
|
2 |
|
|
3 |
A powerful, extensible, and easy-to-use command-line parser for Python.
|
|
4 |
|
|
5 |
By Greg Ward <gward@python.net>
|
|
6 |
|
|
7 |
See http://optik.sourceforge.net/
|
|
8 |
"""
|
|
9 |
|
|
10 |
# Copyright (c) 2001-2004 Gregory P. Ward. All rights reserved.
|
|
11 |
# See the README.txt distributed with Optik for licensing terms.
|
|
12 |
|
|
13 |
__revision__ = "$Id: __init__.py,v 1.1 2009/02/05 23:03:30 stechong Exp $"
|
|
14 |
|
|
15 |
__version__ = "1.5"
|
|
16 |
|
|
17 |
|
|
18 |
# Re-import these for convenience
|
|
19 |
from optik.option import Option
|
|
20 |
from optik.option_parser import *
|
|
21 |
from optik.help import *
|
|
22 |
from optik.errors import *
|
|
23 |
|
|
24 |
from optik import option, option_parser, help, errors
|
|
25 |
__all__ = (option.__all__ +
|
|
26 |
option_parser.__all__ +
|
|
27 |
help.__all__ +
|
|
28 |
errors.__all__)
|
|
29 |
|
|
30 |
|
|
31 |
# Some day, there might be many Option classes. As of Optik 1.3, the
|
|
32 |
# preferred way to instantiate Options is indirectly, via make_option(),
|
|
33 |
# which will become a factory function when there are many Option
|
|
34 |
# classes.
|
|
35 |
make_option = Option
|