Skip to content

Commit 4b3f0ae

Browse files
committed
Make 'module' and 'output' args required
1 parent a78230a commit 4b3f0ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydantic2ts/cli/script.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,12 @@ def parse_cli_args(args: Optional[List[str]] = None) -> argparse.Namespace:
362362
"--module",
363363
help="name or filepath of the python module.\n"
364364
"Discoverable submodules will also be checked.",
365+
required=True,
365366
)
366367
parser.add_argument(
367368
"--output",
368369
help="name of the file the typescript definitions should be written to.",
370+
required=True,
369371
)
370372
parser.add_argument(
371373
"--exclude",

0 commit comments

Comments
 (0)