Added argument to argparse

This commit is contained in:
aeltheos 2021-11-12 21:40:29 +01:00
parent b347ac76c1
commit 02426942d0

View file

@ -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