I am using a management command:
from django.core.management.base import BaseCommand
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('foo', nargs=1, type=str)
def handle(self, *args, **options):
print(type(options['foo']))
And calling from the command prompt:
python manage.py my_command bar
But this outputs:
<class 'list'>
Why not a string? Is this different on Linux?