Skip to content

Commit a2dbb09

Browse files
authored
Enhance CLIArgs with unknown args handling
1 parent 40c6f30 commit a2dbb09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

noxfile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
from pydantic_settings import BaseSettings
55

66

7-
class CLIArgs(BaseSettings, cli_parse_args=True):
7+
class CLIArgs(
8+
BaseSettings,
9+
cli_parse_args=True,
10+
cli_ignore_unknown_args=True,
11+
):
812
"""CLIArgs is a class that extends BaseSettings to handle command line arguments."""
913

1014
junitxml: str = ""

0 commit comments

Comments
 (0)