Skip to content

Commit

Permalink
add one line function explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Mar 12, 2024
1 parent 5da3fc9 commit 3d277c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions looper/cli_pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d277c8

Please sign in to comment.