Skip to content

Commit 711aedd

Browse files
authored
Merge pull request #43 from mpkocher/fix-doc-typo
Fix typos in docs.
2 parents 76a4bcd + a9d7e7a commit 711aedd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def main(opts: Options) -> int:
667667

668668

669669
if __name__ == "__main__":
670-
run_and_exit(Options, main, exception_handler=exception_handler)(sys.argv[1:])
670+
run_and_exit(Options, main, exception_handler=exception_handler)
671671
```
672672

673673
Alternatively, wrap your main function to call `ipdb`.
@@ -695,7 +695,7 @@ def main_with_ipd(opts: Options) -> int:
695695

696696

697697
if __name__ == "__main__":
698-
run_and_exit(Options, main_with_ipd)([sys.argv[1:]])
698+
run_and_exit(Options, main_with_ipd)
699699
```
700700

701701
The core design choice in `pydantic_cli` is leveraging composable functions `f(g(x))` style providing a straight-forward mechanism to plug into.

0 commit comments

Comments
 (0)