New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement HelpMessage in the interactive console #1538

Open
rjmholt opened this Issue Sep 20, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@rjmholt
Member

rjmholt commented Sep 20, 2018

(Should be a PowerShellEditorServices issue, but here for visibility)

Moved from Microsoft/vscode#59042.

The ReadLine of the custom host does not support the HelpMessage parameter setting:

function Test-ParametersAndPrompts {
    [cmdletbinding()]
    param(
        [parameter(Mandatory, HelpMessage = 'Enter the location of the folder.')]
        [string]
        $Path
    )

    process {
        $path
    }
}

Running Test-ParametersAndPrompts in the Integrated Console correctly prompts for the Path parameter, but does not support the ?! input to get the help message.

@rjmholt

This comment has been minimized.

Member

rjmholt commented Sep 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment