diff --git a/Cargo.lock b/Cargo.lock index c1a7a02..4bf8de1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -25,7 +25,7 @@ checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" [[package]] name = "argc" -version = "1.17.0" +version = "1.18.0" dependencies = [ "anyhow", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index d63691f..1f86936 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "argc" -version = "1.17.0" +version = "1.18.0" edition = "2021" authors = ["sigoden "] description = "A bash cli framework, also a bash-based command runner" diff --git a/src/build.rs b/src/build.rs index b72fc3f..67db52b 100644 --- a/src/build.rs +++ b/src/build.rs @@ -13,7 +13,7 @@ const UTIL_FNS: [(&str, &str); 6] = [ _argc_take_args() { _argc_take_args_values=() _argc_take_args_len=0 - local param="${{1:-}}" min="${{2:-}}" max="${{3:-}}" signs="${{4:-}}" delimiter="${{5:-}}" + local param="${1:-}" min="${2:-}" max="${3:-}" signs="${4:-}" delimiter="${5:-}" if [[ "$min" -eq 0 ]] && [[ "$max" -eq 0 ]]; then return fi