We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb80f6 commit a29de95Copy full SHA for a29de95
shtab/main.py
@@ -4,13 +4,14 @@
4
import sys
5
from importlib import import_module
6
7
-from . import SUPPORTED_SHELLS, __version__, complete
+from . import SUPPORTED_SHELLS, __version__, add_argument_to, complete
8
9
log = logging.getLogger(__name__)
10
11
12
def get_main_parser():
13
parser = argparse.ArgumentParser(prog="shtab")
14
+ add_argument_to(parser)
15
parser.add_argument("parser", help="importable parser (or function returning parser)")
16
parser.add_argument("--version", action="version", version="%(prog)s " + __version__)
17
parser.add_argument("-s", "--shell", default=SUPPORTED_SHELLS[0], choices=SUPPORTED_SHELLS)
0 commit comments