(cls, param)
return cls.from_string(param)
Construct a CommandSpec from a parameter to build_scripts, which may
        be None.
Construct a CommandSpec from a parameter to build_scripts, which may
        be None.
Construct a CommandSpec from a parameter to build_scripts which may be None .
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()
        # otherwise, assume it's a string.
        return cls.from_string(param)
def from_param ( cls , param ) : 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. return cls . from_string ( param )