PSResourceGet icon indicating copy to clipboard operation
PSResourceGet copied to clipboard

Mandatory name parameter does not have HelpMessage defined

Open ThomasNieto opened this issue 3 years ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest released version
  • [X] Search the existing issues.

Steps to reproduce

Consider adding a help message to any mandatory parameters for users.

https://github.com/PowerShell/PowerShellGet/blob/c535ca78cdc0b68bb47d4a4c7052f8b627030c04/src/code/InstallPSResource.cs#L33

https://github.com/PowerShell/PowerShellGet/blob/c535ca78cdc0b68bb47d4a4c7052f8b627030c04/src/code/UninstallPSResource.cs#L28

[Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ParameterSetName = NameParameterSet, HelpMessage = '<insert short parameter help>')]

Expected behavior

PS C:\> Install-PSResource

cmdlet Install-PSResource at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Name: !?
Resources names to install.
Name:

Actual behavior

PS C:\> Install-PSResource

cmdlet Install-PSResource at command pipeline position 1
Supply values for the following parameters:
Name[0]:
PS C:\> Uninstall-PSResource

cmdlet Uninstall-PSResource at command pipeline position 1
Supply values for the following parameters:

Error details

N/A

Environment data

Name          Version
----          -------
PowerShellGet 3.0.14

Name                           Value
----                           -----
PSVersion                      7.2.5
PSEdition                      Core
GitCommitId                    7.2.5
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

ThomasNieto avatar Jul 04 '22 00:07 ThomasNieto