diff --git a/README.md b/README.md index 27865e2..89ae009 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ E.g. `./cs2-dumper -c kvm -vvv` - `-v...`: Increase logging verbosity. Can be specified multiple times. - `-c, --connector `: The name of the memflow connector to use. - `-a, --connector-args `: Additional arguments to supply to the connector. -- `-d, --directory `: The output directory to write the generated files to. Default: `output`. +- `-o, --output `: The output directory to write the generated files to. Default: `output`. - `-i, --indent-size `: The number of spaces to use per indentation level. Default: `4`. - `-h, --help`: Print help. - `-V, --version`: Print version. diff --git a/src/main.rs b/src/main.rs index f75336f..e309559 100644 --- a/src/main.rs +++ b/src/main.rs @@ -86,10 +86,10 @@ fn parse_args() -> ArgMatches { .required(false), ) .arg( - Arg::new("directory") + Arg::new("output") .help("The output directory to write the generated files to.") - .long("directory") - .short('d') + .long("output") + .short('o') .default_value("output") .value_parser(value_parser!(PathBuf)) .required(false), @@ -136,7 +136,7 @@ fn extract_args(matches: &ArgMatches) -> Result<(Option, ConnectorArgs, .unwrap_or_default(); let indent_size = *matches.get_one::("indent-size").unwrap(); - let out_dir = matches.get_one::("directory").unwrap(); + let out_dir = matches.get_one::("output").unwrap(); Ok((conn_name, conn_args, indent_size, out_dir)) }