Skip to content

Commit

Permalink
Merge pull request #43 from mpkocher/fix-doc-typo
Browse files Browse the repository at this point in the history
Fix typos in docs.
  • Loading branch information
mpkocher authored Aug 28, 2021
2 parents 76a4bcd + a9d7e7a commit 711aedd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def main(opts: Options) -> int:


if __name__ == "__main__":
run_and_exit(Options, main, exception_handler=exception_handler)(sys.argv[1:])
run_and_exit(Options, main, exception_handler=exception_handler)
```

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


if __name__ == "__main__":
run_and_exit(Options, main_with_ipd)([sys.argv[1:]])
run_and_exit(Options, main_with_ipd)
```

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

0 comments on commit 711aedd

Please sign in to comment.