public string GetArguments() { ScriptingCommandLineBuilder commandLine = new ScriptingCommandLineBuilder(); AddArguments(commandLine); return(commandLine.ToString()); }
protected override void AddArguments(ScriptingCommandLineBuilder commandLine) { commandLine.AppendOption("--disable-gems"); commandLine.AppendBooleanOptionIfTrue("-D", Debug); AppendLoadPaths(commandLine); commandLine.AppendQuotedStringIfNotEmpty(ScriptFileName); commandLine.AppendStringIfNotEmpty(ScriptCommandLineArguments); }
void AppendLoadPaths(ScriptingCommandLineBuilder commandLine) { foreach (string path in loadPaths) { commandLine.AppendQuotedString("-I" + path); } }
protected virtual void AddArguments(ScriptingCommandLineBuilder commandLine) { }
public string GetArguments() { ScriptingCommandLineBuilder commandLine = new ScriptingCommandLineBuilder(); AddArguments(commandLine); return commandLine.ToString(); }
protected override void AddArguments(ScriptingCommandLineBuilder commandLine) { commandLine.AppendBooleanOptionIfTrue("-X:Debug", Debug); commandLine.AppendQuotedStringIfNotEmpty(ScriptFileName); commandLine.AppendStringIfNotEmpty(ScriptCommandLineArguments); }