File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -315,6 +315,12 @@ public override void Write(HelpContext context)
315
315
return ;
316
316
}
317
317
318
+ // argument/option cleanups specific to help
319
+ foreach ( var option in command . Options )
320
+ {
321
+ option . EnsureHelpName ( ) ;
322
+ }
323
+
318
324
if ( command . Equals ( NuGetCommandParser . GetCommand ( ) ) || command . Parents . Any ( parent => parent == NuGetCommandParser . GetCommand ( ) ) )
319
325
{
320
326
NuGetCommand . Run ( context . ParseResult ) ;
@@ -356,12 +362,6 @@ public override void Write(HelpContext context)
356
362
}
357
363
else
358
364
{
359
- // argument/option cleanups specific to help
360
- foreach ( var option in command . Options )
361
- {
362
- option . EnsureHelpName ( ) ;
363
- }
364
-
365
365
if ( command . Name . Equals ( ListReferenceCommandParser . GetCommand ( ) . Name ) )
366
366
{
367
367
Command listCommand = command . Parents . Single ( ) as Command ;
You can’t perform that action at this time.
0 commit comments