From 71cc85dab7d7337545990df7c9ca36bb6779f7f2 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Thu, 21 Dec 2023 14:31:51 +0200 Subject: [PATCH] Require `--module` and `--output` --- pydantic2ts/cli/script.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pydantic2ts/cli/script.py b/pydantic2ts/cli/script.py index 8518395..9e316b9 100644 --- a/pydantic2ts/cli/script.py +++ b/pydantic2ts/cli/script.py @@ -242,10 +242,12 @@ def parse_cli_args(args: List[str] = None) -> argparse.Namespace: "--module", help="name or filepath of the python module.\n" "Discoverable submodules will also be checked.", + required=True, ) parser.add_argument( "--output", help="name of the file the typescript definitions should be written to.", + required=True, ) parser.add_argument( "--exclude",