add '--version'
This commit is contained in:
@@ -58,6 +58,10 @@ def build_cmdline_parser():
|
|||||||
"--list-keywords", dest="list_keywords", action="store_true",
|
"--list-keywords", dest="list_keywords", action="store_true",
|
||||||
help="print a list of available keywords for the given URLs",
|
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(
|
parser.add_argument(
|
||||||
"urls",
|
"urls",
|
||||||
nargs="*", metavar="URL",
|
nargs="*", metavar="URL",
|
||||||
|
|||||||
Reference in New Issue
Block a user