Emul8.CLI.Options.Validate C# (CSharp) Method

Validate() public method

public Validate ( string &error ) : bool
error string
return bool
        public bool Validate(out string error)
        {
            if(!string.IsNullOrEmpty(ScriptPath) && !string.IsNullOrEmpty(Execute))
            {
                error = "Script path and execute command cannot be set at the same time";
                return false;
            }

            error = null;
            return true;
        }
	}
Options