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 08b3ae6 commit 8d3045fCopy full SHA for 8d3045f
Program.cs
@@ -50,10 +50,17 @@ public static List<ProgramArgs> ParseArgs(string[] args) {
50
});
51
} else {
52
var spaceIndex = arg.IndexOf(' ');
53
- res.Add(new ProgramArgs {
54
- ExeName = arg.Substring(0, spaceIndex),
55
- Arguments = arg.Substring(spaceIndex + 1)
56
- });
+ if (spaceIndex < 0) {
+ res.Add(new ProgramArgs {
+ ExeName = arg,
+ Arguments = ""
57
+ });
58
+ } else {
59
60
+ ExeName = arg.Substring(0, spaceIndex),
61
+ Arguments = arg.Substring(spaceIndex + 1).Trim()
62
63
+ }
64
}
65
66
return res;
0 commit comments