mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-05-14 04:55:35 +08:00
Update argument name for output directory
This commit is contained in:
parent
4a10ad3ba6
commit
ef5ff1c5f4
@ -28,7 +28,7 @@ E.g. `./cs2-dumper -c kvm -vvv`
|
|||||||
- `-v...`: Increase logging verbosity. Can be specified multiple times.
|
- `-v...`: Increase logging verbosity. Can be specified multiple times.
|
||||||
- `-c, --connector <connector>`: The name of the memflow connector to use.
|
- `-c, --connector <connector>`: The name of the memflow connector to use.
|
||||||
- `-a, --connector-args <connector-args>`: Additional arguments to supply to the connector.
|
- `-a, --connector-args <connector-args>`: Additional arguments to supply to the connector.
|
||||||
- `-d, --directory <directory>`: The output directory to write the generated files to. Default: `output`.
|
- `-o, --output <output>`: The output directory to write the generated files to. Default: `output`.
|
||||||
- `-i, --indent-size <indent-size>`: The number of spaces to use per indentation level. Default: `4`.
|
- `-i, --indent-size <indent-size>`: The number of spaces to use per indentation level. Default: `4`.
|
||||||
- `-h, --help`: Print help.
|
- `-h, --help`: Print help.
|
||||||
- `-V, --version`: Print version.
|
- `-V, --version`: Print version.
|
||||||
|
@ -86,10 +86,10 @@ fn parse_args() -> ArgMatches {
|
|||||||
.required(false),
|
.required(false),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("directory")
|
Arg::new("output")
|
||||||
.help("The output directory to write the generated files to.")
|
.help("The output directory to write the generated files to.")
|
||||||
.long("directory")
|
.long("output")
|
||||||
.short('d')
|
.short('o')
|
||||||
.default_value("output")
|
.default_value("output")
|
||||||
.value_parser(value_parser!(PathBuf))
|
.value_parser(value_parser!(PathBuf))
|
||||||
.required(false),
|
.required(false),
|
||||||
@ -136,7 +136,7 @@ fn extract_args(matches: &ArgMatches) -> Result<(Option<String>, ConnectorArgs,
|
|||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|
||||||
let indent_size = *matches.get_one::<usize>("indent-size").unwrap();
|
let indent_size = *matches.get_one::<usize>("indent-size").unwrap();
|
||||||
let out_dir = matches.get_one::<PathBuf>("directory").unwrap();
|
let out_dir = matches.get_one::<PathBuf>("output").unwrap();
|
||||||
|
|
||||||
Ok((conn_name, conn_args, indent_size, out_dir))
|
Ok((conn_name, conn_args, indent_size, out_dir))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user