Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 764c765

Browse files
authored
Merge pull request #1276 from orcutt989/issue-#1273
fix prog arg to return correct version
2 parents 7504307 + c7d938c commit 764c765

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pre_commit/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _adjust_args_and_chdir(args):
148148
def main(argv=None):
149149
argv = argv if argv is not None else sys.argv[1:]
150150
argv = [five.to_text(arg) for arg in argv]
151-
parser = argparse.ArgumentParser()
151+
parser = argparse.ArgumentParser(prog='pre-commit')
152152

153153
# https://stackoverflow.com/a/8521644/812183
154154
parser.add_argument(

0 commit comments

Comments
 (0)