From a101dd52ef0ed8c453b0a22e1f698eaa1b3939b7 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 1 Oct 2024 13:31:27 -0700 Subject: [PATCH] Show how to access positional arguments with powershell (#2405) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f53741b0a3..d7e6339ed0 100644 --- a/README.md +++ b/README.md @@ -1141,6 +1141,10 @@ positional arguments work as expected: ```just set shell := ['pwsh.exe', '-CommandWithArgs'] +set positional-arguments + +print-args a b c: + Write-Output @($args[1..($args.Count - 1)]) ``` #### Shell