Commit 69808ee
authored
Fix Test-Remainder invocation to pass three arguments, not two.
You state: "The following example declares a Value parameter that's mandatory and a Remaining parameter that accepts **all the remaining parameter values** that are submitted to the function.
You want to demonstrate this with this invocation:
`Test-Remainder first one, two`
But your "all the remaining parameter values" is merely one value: `one, two` is an array.
Thus, if you removed `ValueFromRemainingArguments`, the same invocation would yield the same output, so your example **does not** demonstrate the benefit of `ValueFromRemainingArguments`.
To fix it, three args have to be passed to the Cmdlet, not just two.1 parent 67c9a04 commit 69808ee
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
| 594 | + | |
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
| |||
0 commit comments