From 07a5b29b3068bc12bd2aa3d61545bbcd74f2b45c Mon Sep 17 00:00:00 2001 From: mcbegamerxx954 <154642722+mcbegamerxx954@users.noreply.github.com> Date: Fri, 10 May 2024 13:04:11 -0400 Subject: [PATCH] chore: Fixup help --- Cargo.lock | 34 +++++++++++++++++----------------- src/main.rs | 10 +++++----- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9cdb9e9..218e391 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -408,23 +408,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "funny-injector" -version = "0.1.0" -dependencies = [ - "anyhow", - "apk", - "clap", - "console", - "human_bytes", - "indicatif", - "inquire", - "object-rewrite", - "thiserror", - "ureq", - "zip 1.1.3", -] - [[package]] name = "funty" version = "2.0.0" @@ -534,6 +517,23 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "injector" +version = "0.1.0" +dependencies = [ + "anyhow", + "apk", + "clap", + "console", + "human_bytes", + "indicatif", + "inquire", + "object-rewrite", + "thiserror", + "ureq", + "zip 1.1.3", +] + [[package]] name = "inquire" version = "0.7.5" diff --git a/src/main.rs b/src/main.rs index 190a202..65b8215 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,18 +18,18 @@ use inquire::{validator::Validation, Confirm}; use object_rewrite::Rewriter; use zip::{read::ZipFile, write::ExtendedFileOptions, ZipArchive, ZipWriter}; #[derive(Parser)] -#[clap(name = "Injector", version = "0.0.1")] +#[clap(name = "Mc injector", version = "0.0.1")] #[command(version, about, long_about = None)] struct Options { - /// Folders/files to work with + /// Apk file to patch apk: String, - /// The new name of the apk + /// New app name #[arg(short, long, default_value = "Minecraft Patched(whar)")] appname: String, /// New package name(optional) #[arg(short, long)] pkgname: Option, - /// Where to place the output at + /// Output path #[arg(short, long)] output: String, } @@ -70,7 +70,7 @@ fn rewrite_zip(zip_file: &File, output: &Path, opts: &Options) -> Result<()> { } if total_size > 0 { remove_music = Confirm::new(&format!( - "remove vanilla songs to save {} from the final apk?", + "Remove vanilla songs to save {} from the final apk?", human_bytes(total_size as f64) )) .prompt()?;