Skip to content
This repository was archived by the owner on Feb 4, 2019. It is now read-only.
This repository was archived by the owner on Feb 4, 2019. It is now read-only.

Pash does not support optional arguments #410

Description

@vladimir-aubrecht

Pash does not support optional arguments right now. Would be nice if literals and variables would be supported as in Powershell.

For example:

$FallbackEnvironment = "test"

function Get-Consumers-By-Consumer-On-All-Databases(
    $Environment = $FallbackEnvironment # This line will fail
)
{
}

With error:

Parse error at (67:29): Syntax error, expected: ,, )
>     $Environment = $FallbackEnvironment
                                         ^
  +CategoryInfo: ParserError, Reason: ParseException
  +FullyQualifiedErrorId: Parse

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions