public override void Parse() { SourceUrl = Args[0]; ExternalDependencies = ParseParameterSwitch("-x"); ZipDependencies = ParseParameterSwitch("-z"); DisplayHtml = ParseParameterSwitch("-d"); TargetFile = ParseStringParameterSwitch("-o", null); if (string.IsNullOrEmpty(TargetFile)) { ExternalDependencies = false; } if (SourceUrl.IndexOf("http", StringComparison.InvariantCultureIgnoreCase) == -1 && SourceUrl.Contains("%")) { SourceUrl = Environment.ExpandEnvironmentVariables(SourceUrl); } if (!string.IsNullOrEmpty(TargetFile) && TargetFile.Contains("%")) { TargetFile = Environment.ExpandEnvironmentVariables(TargetFile); } }