From 41f1eeeb9efd1c8d8683fac6cca7f3b765eb9f7c Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Fri, 23 Jan 2026 00:06:10 +0800 Subject: [PATCH] feat: v1.1.7 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c7111d3..6851327 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1221,7 +1221,7 @@ dependencies = [ [[package]] name = "runrs" -version = "1.1.6" +version = "1.1.7" dependencies = [ "argh", "reqwest", diff --git a/Cargo.toml b/Cargo.toml index 06203ae..28ed9e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "runrs" -version = "1.1.6" +version = "1.1.7" edition = "2018" license = "MIT/Apache-2.0" description = "A Tool for Run Rust Scripts" diff --git a/src/main.rs b/src/main.rs index 56c88a0..b41be23 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,8 +30,8 @@ struct RunScriptArgs { #[argh(switch, short = 'i')] install: bool, /// update listed scripts - #[argh(option)] - update_listed_scripts: Option, + #[argh(switch)] + update_listed_scripts: bool, /// script repo #[argh(option, short = 'R')] script_repo: Option, @@ -65,7 +65,7 @@ fn main() { list::list_scripts( &rs_args.script_repo, rs_args.arguments.first(), - rs_args.update_listed_scripts.unwrap_or(false), + rs_args.update_listed_scripts, ); return; }