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 ```
Pash does not support optional arguments right now. Would be nice if literals and variables would be supported as in Powershell.
For example:
With error: