We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c195e commit 0e28ecfCopy full SHA for 0e28ecf
src/BuiltInTools/dotnet-watch/CommandLineOptions.cs
@@ -202,10 +202,17 @@ private static IReadOnlyList<string> GetLaunchProcessArguments(ParseResult parse
202
{
203
Debug.Assert(optionResult.IdentifierToken != null);
204
205
- foreach (var token in optionResult.Tokens)
+ if (optionResult.Tokens.Count == 0)
206
207
launchProcessArguments.Add(optionResult.IdentifierToken.Value);
208
- launchProcessArguments.Add(token.Value);
+ }
209
+ else
210
+ {
211
+ foreach (var token in optionResult.Tokens)
212
213
+ launchProcessArguments.Add(optionResult.IdentifierToken.Value);
214
+ launchProcessArguments.Add(token.Value);
215
216
}
217
218
0 commit comments