Skip to content

Commit a29de95

Browse files
Freed-Wucasperdcl
authored andcommitted
Fix #89
1 parent 1eb80f6 commit a29de95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shtab/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
import sys
55
from importlib import import_module
66

7-
from . import SUPPORTED_SHELLS, __version__, complete
7+
from . import SUPPORTED_SHELLS, __version__, add_argument_to, complete
88

99
log = logging.getLogger(__name__)
1010

1111

1212
def get_main_parser():
1313
parser = argparse.ArgumentParser(prog="shtab")
14+
add_argument_to(parser)
1415
parser.add_argument("parser", help="importable parser (or function returning parser)")
1516
parser.add_argument("--version", action="version", version="%(prog)s " + __version__)
1617
parser.add_argument("-s", "--shell", default=SUPPORTED_SHELLS[0], choices=SUPPORTED_SHELLS)

0 commit comments

Comments
 (0)