Skip to content

Commit

Permalink
Fixed bug where file was required and multiple --format options were …
Browse files Browse the repository at this point in the history
…not working
  • Loading branch information
jjjake committed Dec 10, 2024
1 parent bd8a0fb commit 4c8327e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internetarchive/cli/ia_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def setup(subparsers):
help="Identifier for the item from which files are to be deleted.")
parser.add_argument("file",
type=str,
nargs="+",
nargs="*",
help="Specific file(s) to delete.")

# Optional arguments
Expand All @@ -74,7 +74,7 @@ def setup(subparsers):
help="Only delete files matching the given pattern.")
parser.add_argument("-f", "--format",
type=str,
nargs="*",
action="append",
help="Only delete files matching the specified formats.")
parser.add_argument("-R", "--retries",
type=int,
Expand Down

0 comments on commit 4c8327e

Please sign in to comment.