change path

This commit is contained in:
Tanaka Zakku
2022-04-20 10:16:25 +09:00
parent dbf3c55bc4
commit c6b2879eb5
5 changed files with 9 additions and 16 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ fn build_app<'a>() -> ArgMatches<'a> {
.arg(
// TODO: When update claps to 3.x, these can write in usage texts...
Arg::from_usage("--level-tuning=[LEVEL_TUNING_FILE] 'Adjust rule level.'")
.default_value("./config/level_tuning.txt"),
.default_value("./rules/config/level_tuning.txt"),
)
.usage(usages)
.args_from_usage(usages)
+2 -2
View File
@@ -235,7 +235,7 @@ impl App {
.unwrap()
.args
.value_of("level-tuning")
.unwrap_or("./config/level_tuning.txt")
.unwrap_or("./rules/config/level_tuning.txt")
.to_string();
if Path::new(&level_tuning_config_path).exists() {
@@ -253,7 +253,7 @@ impl App {
} else {
AlertMessage::alert(
&mut BufWriter::new(std::io::stderr().lock()),
"Need rule_levels.txt file to use --level-tuning option [default: ./config/level_tuning.txt]",
"Need rule_levels.txt file to use --level-tuning option [default: ./rules/config/level_tuning.txt]",
)
.ok();
}