From 6aeab782ee7374e3615018423db10e8be7f5d98b Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Wed, 22 Feb 2023 23:52:12 +0800 Subject: [PATCH] fix: install args empty --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/install.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f0d5a7e..d25fd16 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -626,7 +626,7 @@ dependencies = [ [[package]] name = "runrs" -version = "0.2.0" +version = "0.2.1" dependencies = [ "reqwest", "rust_util", diff --git a/Cargo.toml b/Cargo.toml index 0aee689..1c0fb5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "runrs" -version = "0.2.0" +version = "0.2.1" edition = "2018" license = "MIT/Apache-2.0" description = "A Tool for Run Rust Scripts" diff --git a/src/install.rs b/src/install.rs index 77ee19f..0dbf73a 100644 --- a/src/install.rs +++ b/src/install.rs @@ -8,7 +8,7 @@ const SCRIPT_PATTERN: &'static str = "https://git.hatter.ink/rust-scripts/script pub fn install_script(args: Vec<&String>) { if args.is_empty() { - failure!("No script name assigned!"); + failure_and_exit!("No script name assigned!"); } let script_name = &args[0]; let normalized_script_name = if script_name.ends_with(".rs") {