mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-11 11:00:01 -05:00
Merge pull request #1276 from orcutt989/issue-#1273
fix prog arg to return correct version
This commit is contained in:
+1
-1
@@ -148,7 +148,7 @@ def _adjust_args_and_chdir(args):
|
||||
def main(argv=None):
|
||||
argv = argv if argv is not None else sys.argv[1:]
|
||||
argv = [five.to_text(arg) for arg in argv]
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = argparse.ArgumentParser(prog='pre-commit')
|
||||
|
||||
# https://stackoverflow.com/a/8521644/812183
|
||||
parser.add_argument(
|
||||
|
||||
Reference in New Issue
Block a user