From 3d277c8b9716e3aa502152d3fe926fab83394e4e Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:52:23 -0400 Subject: [PATCH] add one line function explanations --- looper/cli_pydantic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/looper/cli_pydantic.py b/looper/cli_pydantic.py index f688772ee..fac891727 100644 --- a/looper/cli_pydantic.py +++ b/looper/cli_pydantic.py @@ -51,10 +51,12 @@ def opt_attr_pair(name: str) -> Tuple[str, str]: + """Takes argument as attribute and returns as tuple of top-level or subcommand used.""" return f"--{name}", name.replace("-", "_") def validate_post_parse(args: argparse.Namespace) -> List[str]: + """Checks if user is attempting to use mutually exclusive options.""" problems = [] used_exclusives = [ opt