I have this simple Django command I'm writing as such:
def add_arguments(self, parser):
parser.add_argument('--type', nargs='+', type=str)
parser.add_argument('--overwrite', nargs='?', type=bool, default=False)
parser.add_argument('--unsubscribe', nargs='?',
type=bool, default=False)
def handle(self, *args, **options):
print(options['type'])
If I run myCommand --type=all I see my type printed as ['all']. Why is this coming back as an array? I just want the string value all.