From 7ceeafd435ce64175fb7edfc2e4bff572f86c036 2013-07-30 06:49:54 From: Paul Ivanov Date: 2013-07-30 06:49:54 Subject: [PATCH] allow for List traitlets to come from command line --- diff --git a/IPython/utils/traitlets.py b/IPython/utils/traitlets.py index 6c85e04..4557dda 100644 --- a/IPython/utils/traitlets.py +++ b/IPython/utils/traitlets.py @@ -1208,6 +1208,11 @@ class Container(Instance): raise TraitError(e) def validate(self, obj, value): + # Command line arguments come in as strings, let's make them into + # lists so we can proceed with validation + if isinstance(value, basestring): + value = value.split(',') + value = super(Container, self).validate(obj, value) if value is None: return value