[yabridgectl] Allow permanently disabling checks

This commit is contained in:
Robbert van der Helm
2021-01-02 14:32:29 +01:00
parent ef540f354c
commit c206d68b12
4 changed files with 40 additions and 7 deletions
+11
View File
@@ -116,7 +116,17 @@ fn main() -> Result<()> {
"Automatically locate yabridge's files. This can be used after manually \
setting a path with the '--path' option to revert back to the default \
auto detection behaviour.",
),
).arg(
Arg::with_name("no_verify")
.long("no-verify")
.about("Always skip post-installation setup checks")
.long_about(
"Always skip post-installation setup checks. This can be set temporarily \
by passing the '--no-verify' option to 'yabridgectl sync'.",
)
.possible_values(&["true", "false"])
.takes_value(true),
),
)
.subcommand(
@@ -177,6 +187,7 @@ fn main() -> Result<()> {
.ok()
.and_then(|path| path.canonicalize().ok()),
path_auto: options.is_present("path_auto"),
no_verify: options.value_of("no_verify").map(|value| value == "true"),
},
),
("sync", Some(options)) => actions::do_sync(