@classmethod
def from_param(cls, param):
    """
        Construct a CommandSpec from a parameter to build_scripts, which may
        be None.
        """
    if isinstance(param, cls):
        return param
    if isinstance(param, list):
        return cls(param)
    if param is None:
        return cls.from_environment()
    return cls.from_string(param)
