Skip to content

Call the parser function with conditional -Verbose #199

Description

@DennisL68

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions