How can I make $m switch accept one argument but $prebuild doesn't need any argument.
Param (
[Parameter(Mandatory=$true)]
[Switch]$m,
[Switch]$prebuild
)
The script would be executed as below but I get the following error.
.\test.ps1 -m java
A positional parameter cannot be found that accepts argument 'java'