Commit 4356a2dc authored by Jason R. Coombs's avatar Jason R. Coombs

Allow CommandSpec to be constructed simply from a list.

parent 6ab7d6db
......@@ -1870,6 +1870,8 @@ class CommandSpec(list):
"""
if isinstance(param, cls):
return param
if isinstance(param, list):
return cls(param)
if param is None:
return cls.from_environment()
# otherwise, assume it's a string.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment