From 1e001b3acb6de75312d5492c19f0e5ff24714cdb Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 1 Oct 2024 12:08:19 -0700 Subject: [PATCH] Document `-cwa` flag for PowerShell positional arguments --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 8b06f07e11..a9d5362a04 100644 --- a/README.md +++ b/README.md @@ -1136,6 +1136,13 @@ Note that PowerShell does not handle positional arguments in the same way as other shells, so turning on positional arguments will likely break recipes that use PowerShell. +If using PowerShell 7.4 or better, the `-cwa` flag will make positional +arguments work as expected: + +```just +set shell := ['powershell.exe', '-cwa'] +``` + #### Shell The `shell` setting controls the command used to invoke recipe lines and