From 874918fdd330ad2a9b0e04f774f7ae5c11e21559 Mon Sep 17 00:00:00 2001 From: fj0r <82698591+fj0r@users.noreply.github.com> Date: Tue, 17 Sep 2024 23:51:37 +0800 Subject: [PATCH] Upgrade range syntax (#953) Co-authored-by: nash --- modules/argx/mod.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/argx/mod.nu b/modules/argx/mod.nu index 41da4ba..7b98373 100644 --- a/modules/argx/mod.nu +++ b/modules/argx/mod.nu @@ -85,7 +85,7 @@ export def parse [] { for c in $token { if ($sw | is-empty) { if ($c | str starts-with '-') { - let c = if ($c | str substring 1..2) != '-' { + let c = if ($c | str substring 1..<2) != '-' { let k = ($c | str substring 1..) if $k in $sign.name { $'($sign.name | get $k)'