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 722fe8d commit b73af24Copy full SHA for b73af24
src/MamlWriter/MamlHelpers.cs
@@ -216,8 +216,18 @@ private static CommandDetails ConvertCommandDetails(CommandHelp commandHelp)
216
var details = new CommandDetails();
217
details.Name = commandHelp.Title;
218
string[] verbNoun = commandHelp.Title.Split('-');
219
- details.Verb = verbNoun[0];
220
- details.Noun = verbNoun[1];
+
+ if (verbNoun.Length == 2)
221
+ {
222
+ details.Verb = verbNoun[0];
223
+ details.Noun = verbNoun[1];
224
+ }
225
+ else
226
227
+ details.Verb = commandHelp.Title;
228
+ details.Noun = string.Empty;
229
230
231
details.Synopsis.Add(commandHelp.Synopsis);
232
return details;
233
}
0 commit comments