|
|
|
@ -69,7 +69,7 @@ fn main() {
|
|
|
|
|
.takes_value(true).required(true))
|
|
|
|
|
.arg(Arg::with_name("output")
|
|
|
|
|
.help("Output directory")
|
|
|
|
|
.short("o").long("output").takes_value(true).required(false))
|
|
|
|
|
.short("o").long("output").takes_value(true).required(true))
|
|
|
|
|
.arg(Arg::with_name("overwrite")
|
|
|
|
|
.help("Overwrite existing files")
|
|
|
|
|
.short("f").long("force").takes_value(false).required(false)))
|
|
|
|
@ -199,7 +199,7 @@ fn cmd_bnd(args: &ArgMatches) -> i32 {
|
|
|
|
|
|
|
|
|
|
fn cmd_bhf(args: &ArgMatches) -> i32 {
|
|
|
|
|
let file_path: &str = args.value_of("file").unwrap();
|
|
|
|
|
let output_path: Option<&str> = args.value_of("output");
|
|
|
|
|
let output_path: &str = args.value_of("output").unwrap();
|
|
|
|
|
let overwrite: bool = args.is_present("overwrite");
|
|
|
|
|
match unpackers::bhf::extract_bhf_file(file_path, output_path, overwrite) {
|
|
|
|
|
Err(e) => { eprintln!("Failed to extract BHF: {:?}", e); 1 }
|
|
|
|
|