Skip to content

Commit 7e062c8

Browse files
authored
Merge pull request #393 from zanecodes/fix-cli
Fix: All `python -m semver` commands fail with 'error: invalid choice:'
2 parents 2018346 + a5f3a69 commit 7e062c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/semver/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ def main(cliargs: Optional[List[str]] = None) -> int:
2525

2626

2727
if __name__ == "__main__":
28-
sys.exit(main(sys.argv))
28+
sys.exit(main(sys.argv[1:]))

0 commit comments

Comments
 (0)