Skip to content

Commit 1e45388

Browse files
committed
Fixing the API
1 parent 4cac36b commit 1e45388

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ First you will need to setup [pre-commit](https://pre-commit.com/) using their d
1313
rev: v0.3.1
1414
hooks:
1515
- id: commit-msg-hook
16-
args: ["regex='[A-Z]{3,4}-[0-9]{3,6} \| [\w\s]* \| .+'"]
16+
args: [--pattern='[A-Z]{3,4}-[0-9]{3,6} \| [\w\s]* \| .+']
1717
stages: [commit-msg]
1818
```
1919

src/main/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def main():
3333
parser = argparse.ArgumentParser()
3434
parser.add_argument("message", nargs="?", type=process_file, default=COMMIT_EDITMSG,
3535
help="File path for commit message")
36-
parser.add_argument("pattern", type=process_pattern, required=True)
36+
parser.add_argument("--pattern", type=process_pattern)
3737
parser.add_argument(
3838
'--debug',
3939
action='store_true',
40-
help='print debug messages to stderr'
40+
help='print debug messages to stdout'
4141
)
4242

4343
args = parser.parse_args()

0 commit comments

Comments
 (0)