add '--version'

This commit is contained in:
Mike Fährmann
2016-08-24 14:51:15 +02:00
parent 6d401b1118
commit 143bd9de11

View File

@@ -58,6 +58,10 @@ def build_cmdline_parser():
"--list-keywords", dest="list_keywords", action="store_true",
help="print a list of available keywords for the given URLs",
)
parser.add_argument(
"--version", action="version", version=__version__,
help="print program version and exit"
)
parser.add_argument(
"urls",
nargs="*", metavar="URL",