From 817d9118a6540eaf5422366eafbab3fd696e8ea3 Mon Sep 17 00:00:00 2001 From: Bryce Wilkinson Date: Mon, 23 Oct 2023 00:07:58 -0400 Subject: [PATCH] Fix required --- README.md | 11 +++-------- src/main.rs | 6 +++--- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 77c823f..f35c550 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,11 @@ # cs2-dumper External offsets/interfaces dumper for Counter-Strike: 2, written in Rust. - -# Generated Files - -Generated files are stored in the `generated` directory. - 📂 [Pre-generated Files](./generated) # Running The Application Within CMD run: - `cs2_dumper --argument value --argument...` + `cs2_dumper --path generated` ## Available Arguments | Argument | Type | Description | Default Value | Required @@ -20,8 +15,8 @@ Generated files are stored in the `generated` directory. | offsets | bool | Dump Offsets | True | :heavy_multiplication_x: | | schemas | bool | Dump Schemas | True | :heavy_multiplication_x: | | dbuilders | String | Comma Separated String **without spaces** specifying the output file formats. Available Builders: [JSON, CPP, CSharp, Python, Rust] | Blank (All) | :heavy_multiplication_x: | -| path | String | Folder name for dumped assets | True | :heavy_check_mark: | -| interfaces | bool | Dump Interfaces | True | :heavy_multiplication_x: | +| path | String | Folder name for Generated Files| True | :heavy_check_mark: | +| verbose | bool | Print Debug Logging | False | :heavy_multiplication_x: | # License diff --git a/src/main.rs b/src/main.rs index 3e53046..20ab815 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,7 +22,7 @@ mod remote; mod sdk; #[derive(Debug, Parser)] -#[command(author, version, about, long_about = None)] +#[command(author, version, about)] struct Args { #[arg(short, long)] interfaces: bool, @@ -33,7 +33,7 @@ struct Args { #[arg(short, long)] schemas: bool, - #[arg(short, long)] + #[arg(short, long, default_value = "all")] dbuilders: String, #[arg(short, long)] @@ -74,7 +74,7 @@ fn main() -> Result<()> { let mut active_builders: Vec = Vec::new(); - if dbuilders.len() == 0 { + if dbuilders == "all" { active_builders = vec![ FileBuilderEnum::CppFileBuilder(CppFileBuilder), FileBuilderEnum::CSharpFileBuilder(CSharpFileBuilder),