Use list instead of tuple for argparse options (#275)
Aparently pycharm has a problem with tuples?master
parent
c5d4e6ca53
commit
f66c8e83e6
|
|
@ -43,7 +43,7 @@ class Command(BaseCommand):
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-f', '--format', dest='format',
|
'-f', '--format', dest='format',
|
||||||
default='', choices=('json', 'yaml'),
|
default='', choices=['json', 'yaml'],
|
||||||
type=str,
|
type=str,
|
||||||
help='Output format. If not given, it is guessed from the output file extension and defaults to json.'
|
help='Output format. If not given, it is guessed from the output file extension and defaults to json.'
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue