Skip to content

Commit

Permalink
moderation: fix CLI usage for importing link domains
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Nov 15, 2024
1 parent d8f54ee commit 58c9ba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/zenodo_rdm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def domains_cli():


@domains_cli.command("add")
@click.option("-d", "--domain", required=True, help="The domain to add.")
@click.option("-d", "--domain", help="The domain to add.")
@click.option("-n", "--notes", help="Additional notes for the domain.")
@click.option(
"-s",
Expand All @@ -396,6 +396,7 @@ def domains_cli():
@with_appcontext
def add_domain(domain, notes, status, score, file):
"""Command to add a moderated links domain."""
assert domain or file, "You must provide either a single domain or a CSV file."
if file:
_add_domains_from_csv(file)
else:
Expand Down

0 comments on commit 58c9ba1

Please sign in to comment.