Skip to content

Commit 7208c42

Browse files
committed
minor tidy & inline comment
1 parent a29de95 commit 7208c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shtab/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
def get_main_parser():
1313
parser = argparse.ArgumentParser(prog="shtab")
14-
add_argument_to(parser)
1514
parser.add_argument("parser", help="importable parser (or function returning parser)")
1615
parser.add_argument("--version", action="version", version="%(prog)s " + __version__)
1716
parser.add_argument("-s", "--shell", default=SUPPORTED_SHELLS[0], choices=SUPPORTED_SHELLS)
@@ -27,6 +26,7 @@ def get_main_parser():
2726
)
2827
parser.add_argument("--verbose", dest="loglevel", action="store_const", default=logging.INFO,
2928
const=logging.DEBUG, help="Log debug information")
29+
add_argument_to(parser) # add `--print-completion` option (dogfooding)
3030
return parser
3131

3232

0 commit comments

Comments
 (0)