Skip to content

Commit

Permalink
fix force argument, add clarification for overlapping short form argu…
Browse files Browse the repository at this point in the history
…ments
  • Loading branch information
donaldcampbelljr committed May 15, 2024
1 parent 1cf1f9b commit 833c41c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion looper/command_models/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def add_short_arguments(parser):
This is a workaround as pydantic-argparse does not currently support this during initial parser creation.
"""
# Loop through commands, add relevant short arguments
# Note there are three long form arguments that have 'f' as a short form. However, they are used on 3 separate commands.

short_arguments_dict = {
"--dry-run": "-d",
Expand All @@ -258,7 +259,7 @@ def add_short_arguments(parser):
"--lump-n": "-n",
"--lump-j": "-j",
"--skip-file-checks": "-f",
"--force": "-f",
"--force-yes": "-f",
"--flags": "-f",
}

Expand Down

0 comments on commit 833c41c

Please sign in to comment.