Added argument to argparse
This commit is contained in:
parent
b347ac76c1
commit
02426942d0
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue