Add a --version parameter.
This commit is contained in:
parent
613699e203
commit
53327c4b5e
|
@ -3,6 +3,7 @@
|
|||
"""Fix style of uncommited po files, or all if --all is given.
|
||||
"""
|
||||
|
||||
from powrap import __version__
|
||||
from shlex import quote
|
||||
from subprocess import check_output, run
|
||||
|
||||
|
@ -50,6 +51,9 @@ def main():
|
|||
parser.add_argument(
|
||||
"--quiet", "-q", action="store_true", help="Do not show progress bar."
|
||||
)
|
||||
parser.add_argument(
|
||||
"--version", action="version", version="%(prog)s " + __version__
|
||||
)
|
||||
parser.add_argument(
|
||||
"--no-wrap",
|
||||
action="store_true",
|
||||
|
|
Loading…
Reference in New Issue
Block a user