@@ -27,6 +27,7 @@ public sealed class UpdateHelpCommand : PSCmdlet
2727 public string [ ] Path { get ; set ; } = Array . Empty < string > ( ) ;
2828
2929 [ Parameter ( Mandatory = true , ValueFromPipeline = true , ParameterSetName = "LiteralPath" ) ]
30+ [ Alias ( "PSPath" , "LP" ) ]
3031 [ ValidateNotNullOrEmpty ]
3132 public string [ ] LiteralPath { get ; set ; } = Array . Empty < string > ( ) ;
3233
@@ -65,7 +66,7 @@ protected override void ProcessRecord()
6566 var cmdInfo = SessionState . InvokeCommand . GetCommand ( commandName , CommandTypes . Function | CommandTypes . Filter | CommandTypes . Cmdlet ) ;
6667 if ( cmdInfo is null )
6768 {
68- var err = new ErrorRecord ( new CommandNotFoundException ( commandName ) , "UpdateMarkdownCommandHelp,CommandNotFound" , ErrorCategory . ObjectNotFound , commandName ) ;
69+ var err = new ErrorRecord ( new CommandNotFoundException ( commandName ) , "UpdateMarkdownCommandHelp,CommandNotFound" , ErrorCategory . ObjectNotFound , commandName ) ;
6970 err . ErrorDetails = new ( $ "Did you import the module which includes '{ commandName } '?") ;
7071 WriteError ( err ) ;
7172 continue ;
@@ -74,7 +75,7 @@ protected override void ProcessRecord()
7475 var helpObjectFromCmdlet = new TransformCommand ( transformSettings ) . Transform ( cmdInfo ) ;
7576 if ( helpObjectFromCmdlet is null )
7677 {
77- var err = new ErrorRecord ( new InvalidOperationException ( commandName ) , "UpdateMarkdownCommandHelp,CmdletConversion" , ErrorCategory . InvalidResult , commandName ) ;
78+ var err = new ErrorRecord ( new InvalidOperationException ( commandName ) , "UpdateMarkdownCommandHelp,CmdletConversion" , ErrorCategory . InvalidResult , commandName ) ;
7879 err . ErrorDetails = new ( $ "Could not convert { commandName } to CommandHelp.") ;
7980 WriteError ( err ) ;
8081 continue ;
0 commit comments