From 98ce2f3e92fc8d1c6eb8be56b7820180379d5433 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 1 Oct 2024 13:27:56 -0700 Subject: [PATCH] Show how to access positional arguments with powershell --- 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