[cache_check (rust)] Check space map counts

- Support space map checking and auto-repair
This commit is contained in:
Ming-Hung Tsai
2021-04-21 23:36:10 +08:00
parent 636d50a38d
commit cf4b937ade
4 changed files with 96 additions and 10 deletions

View File

@@ -49,6 +49,11 @@ fn main() {
.help("Only return a non-zero exit code if a fatal error is found.")
.long("ignore-non-fatal-errors"),
)
.arg(
Arg::with_name("AUTO_REPAIR")
.help("Auto repair trivial issues.")
.long("auto-repair"),
)
.arg(
Arg::with_name("QUIET")
.help("Suppress output messages, return only exit code.")
@@ -76,6 +81,7 @@ fn main() {
skip_hints: matches.is_present("SKIP_HINTS"),
skip_discards: matches.is_present("SKIP_DISCARDS"),
ignore_non_fatal: matches.is_present("IGNORE_NON_FATAL"),
auto_repair: matches.is_present("AUTO_REPAIR"),
report,
};