Skip to content
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

Call the parser function with conditional -Verbose #199

Open
DennisL68 opened this issue May 16, 2023 · 0 comments
Open

Call the parser function with conditional -Verbose #199

DennisL68 opened this issue May 16, 2023 · 0 comments
Labels
Issue-Enhancement New feature or request

Comments

@DennisL68
Copy link

Summary of the new feature / enhancement

As a PowerShell scripter
I'd like to have the option to get verbose output
to better trouble shoot my work

Proposed technical implementation details (optional)

Make sure the current Verbose settings is transferred with the calls to the parser.

function MyParser {
  [cmdletbinding()]
  param()

  Write-Verbose 'Hello'
}

Using the syntax below will use verbose mode conditionally based on the current environment setting from where the call is made.

MyParser -Verbose:$VerbosePreference

@DennisL68 DennisL68 added the Issue-Enhancement New feature or request label May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant