From 02426942d0a53d36a3f13bf662dc6aa4d4d8ee51 Mon Sep 17 00:00:00 2001 From: aeltheos Date: Fri, 12 Nov 2021 21:40:29 +0100 Subject: [PATCH] Added argument to argparse --- photologue_custom/management/commands/duplicate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/photologue_custom/management/commands/duplicate.py b/photologue_custom/management/commands/duplicate.py index ff546aa..e597a52 100644 --- a/photologue_custom/management/commands/duplicate.py +++ b/photologue_custom/management/commands/duplicate.py @@ -8,7 +8,11 @@ class Command(BaseCommand): help = 'List all duplicate for chosen galleries' def add_arguments(self, parser): - pass + parser.add_arguments( + '--slugs', nargs='+', help='Try to find duplicate in the selected galleries', default=[]) + parser.add_arguments('-a', '--all', action='store_true', + help='Try to find duplicate in all galleries') + parser.add_arguments('-d', '--delete', action='store_true') def handle(self, *args, **options): pass