We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76a4bcd + a9d7e7a commit 711aeddCopy full SHA for 711aedd
README.md
@@ -667,7 +667,7 @@ def main(opts: Options) -> int:
667
668
669
if __name__ == "__main__":
670
- run_and_exit(Options, main, exception_handler=exception_handler)(sys.argv[1:])
+ run_and_exit(Options, main, exception_handler=exception_handler)
671
```
672
673
Alternatively, wrap your main function to call `ipdb`.
@@ -695,7 +695,7 @@ def main_with_ipd(opts: Options) -> int:
695
696
697
698
- run_and_exit(Options, main_with_ipd)([sys.argv[1:]])
+ run_and_exit(Options, main_with_ipd)
699
700
701
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