Skip to content

Commit 28cb53f

Browse files
committed
Update Dynamic-switch-parameter/README
1 parent 2a0175f commit 28cb53f

File tree

1 file changed

+9
-7
lines changed
  • Basic/DynamicParam/Dynamic-switch-parameter

1 file changed

+9
-7
lines changed

Basic/DynamicParam/Dynamic-switch-parameter/README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# Dynamic switch parameter
22

3-
Dynamic switches specified before positional parameter arguments with omitted
4-
parameter names swallow these arguments and make a command invalid, either due
5-
to incorrect syntax or shifted arguments. In the latter case a command may even
6-
work without errors with incorrect input parameters.
3+
Dynamic switches specified before positional parameters with omitted names
4+
affect positional arguments and make commands invalid, either due to incorrect
5+
syntax or shifted arguments. Note, commands may even work without errors with
6+
incorrectly treated parameters.
77

88
Workarounds
99

10-
- Specify dynamic switches with values `-ReadOnly:$true`.
11-
- Or specify dynamic switches after positional parameters.
12-
- Or do not omit parameter names of positional parameters.
10+
- Specify dynamic switches after positional parameters.
11+
- Do not omit parameter names of positional parameters.
12+
13+
> Used to work as a workaround, not working anymore in the latest v5.1+
14+
> - Specify dynamic switches with values `-ReadOnly:$true`.
1315
1416
Scripts
1517

0 commit comments

Comments
 (0)