small english fix

This commit is contained in:
Tanaka Zakku
2022-04-12 08:38:57 +09:00
parent 9fa60dd26d
commit c09f9d4f5f
2 changed files with 3 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ fn build_app<'a>() -> ArgMatches<'a> {
.setting(AppSettings::VersionlessSubcommands) .setting(AppSettings::VersionlessSubcommands)
.arg( .arg(
// TODO: When update claps to 3.x, these can write in usage texts... // TODO: When update claps to 3.x, these can write in usage texts...
Arg::from_usage("--level-tuning=[LEVEL_TUNING_FILE] 'Fix rule file's level'") Arg::from_usage("--level-tuning=[LEVEL_TUNING_FILE] 'Adjust rule level.'")
.default_value("./config/level_tuning.txt"), .default_value("./config/level_tuning.txt"),
) )
.usage(usages) .usage(usages)

View File

@@ -85,6 +85,7 @@ impl App {
// Show usage when no arguments. // Show usage when no arguments.
if std::env::args().len() == 1 { if std::env::args().len() == 1 {
self.output_logo(); self.output_logo();
println!();
println!("{}", configs::CONFIG.read().unwrap().args.usage()); println!("{}", configs::CONFIG.read().unwrap().args.usage());
println!(); println!();
return; return;
@@ -103,7 +104,7 @@ impl App {
if !self.is_matched_architecture_and_binary() { if !self.is_matched_architecture_and_binary() {
AlertMessage::alert( AlertMessage::alert(
&mut BufWriter::new(std::io::stderr().lock()), &mut BufWriter::new(std::io::stderr().lock()),
"The hayabusa version you ran does not match your PC architecture.\n Please use the correct architecture. (Binary ending in -x64.exe for 64-bit and -x86.exe for 32-bit.)", "The hayabusa version you ran does not match your PC architecture.\nPlease use the correct architecture. (Binary ending in -x64.exe for 64-bit and -x86.exe for 32-bit.)",
) )
.ok(); .ok();
println!(); println!();