Skip to content

Commit

Permalink
Upgrade range syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nashvi committed Sep 15, 2024
1 parent d04eea6 commit 619379d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/argx/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down

0 comments on commit 619379d

Please sign in to comment.