@@ -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