Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d160fb8

Browse filesBrowse files
committed
Fix typo in var name; s/Hypen/Hyphen/
1 parent d03a026 commit d160fb8
Copy full SHA for d160fb8

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎src/Dotnet.Script/Program.cs‎

Copy file name to clipboardExpand all lines: src/Dotnet.Script/Program.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private static int Wain(string[] args)
7979
var nocache = app.Option("--nocache", "disable DLL caching", CommandOptionType.NoValue);
8080

8181
var argsBeforeDoubleHyphen = args.TakeWhile(a => a != "--").ToArray();
82-
var argsAfterDoubleHypen = args.SkipWhile(a => a != "--").Skip(1).ToArray();
82+
var argsAfterDoubleHyphen = args.SkipWhile(a => a != "--").Skip(1).ToArray();
8383

8484
app.HelpOption("-? | -h | --help");
8585

@@ -103,7 +103,7 @@ private static int Wain(string[] args)
103103
optimizationLevel = OptimizationLevel.Release;
104104
}
105105
var logFactory = CreateLogFactory(verbosity.Value(), debugMode.HasValue());
106-
exitCode = await RunCode(code.Value, debugMode.HasValue(), logFactory, optimizationLevel, app.RemainingArguments.Concat(argsAfterDoubleHypen), cwd.Value(), packageSources.Values?.ToArray());
106+
exitCode = await RunCode(code.Value, debugMode.HasValue(), logFactory, optimizationLevel, app.RemainingArguments.Concat(argsAfterDoubleHyphen), cwd.Value(), packageSources.Values?.ToArray());
107107
}
108108
return exitCode;
109109
});
@@ -219,7 +219,7 @@ private static int Wain(string[] args)
219219

220220
var compiler = GetScriptCompiler(commandDebugMode.HasValue(), logFactory);
221221
var runner = new ScriptRunner(compiler, logFactory, ScriptConsole.Default);
222-
var result = await runner.Execute<int>(absoluteFilePath, app.RemainingArguments.Concat(argsAfterDoubleHypen));
222+
var result = await runner.Execute<int>(absoluteFilePath, app.RemainingArguments.Concat(argsAfterDoubleHyphen));
223223
return result;
224224
}
225225
return exitCode;
@@ -247,7 +247,7 @@ private static int Wain(string[] args)
247247
{
248248
optimizationLevel = OptimizationLevel.Release;
249249
}
250-
exitCode = await RunScript(file.Value, debugMode.HasValue(), logFactory, optimizationLevel, app.RemainingArguments.Concat(argsAfterDoubleHypen), interactive.HasValue(), packageSources.Values?.ToArray());
250+
exitCode = await RunScript(file.Value, debugMode.HasValue(), logFactory, optimizationLevel, app.RemainingArguments.Concat(argsAfterDoubleHyphen), interactive.HasValue(), packageSources.Values?.ToArray());
251251
}
252252
else
253253
{
@@ -327,7 +327,7 @@ private static int Wain(string[] args)
327327

328328
// run the cached %temp%\dotnet-scripts\{uniqueFolderName}/package.dll
329329
var runner = new ScriptRunner(compiler, logFactory, ScriptConsole.Default);
330-
var result = await runner.Execute<int>(pathToDll, app.RemainingArguments.Concat(argsAfterDoubleHypen));
330+
var result = await runner.Execute<int>(pathToDll, app.RemainingArguments.Concat(argsAfterDoubleHyphen));
331331
return result;
332332
}
333333
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.