#1 14 Mar 2019 20:36

liturgist
Member
Registered: 04 Mar 2019
Posts: 3

PowerShell cannot use --parameter command line

It appears that PowerShell cannot use '--' to indicate a parameter name.

Using '--' is somewhat industry standard. Is there any way to do this with Powershell?

Offline

#2 Yesterday 11:49

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 997
Website

Re: PowerShell cannot use --parameter command line

In the bash shell a double dash (--) is used for built-in commands and many other commands to signify the end of command options. i.e. stop parsing and pass anything else on the command line as plain text.

In PowerShell the equivalent is --%

Offline

Board footer

Powered by FluxBB