From a9d7e7ae8428d301975a9136e363c36cc3e1329e Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 27 Aug 2021 23:12:27 -0700 Subject: [PATCH] Fix typos in docs. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0df51c2..a3b9101 100644 --- a/README.md +++ b/README.md @@ -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`. @@ -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.