Add an option to disable setup checks

The path check should only take a few milliseconds to run, but checking
whether yabridge-host.exe runs correctly could take over a second when
wineserver isn't already running in the background.
This commit is contained in:
Robbert van der Helm
2020-07-19 13:54:12 +02:00
parent 86be5c4814
commit 3e438be302
3 changed files with 22 additions and 0 deletions
+7
View File
@@ -100,6 +100,12 @@ fn main() -> Result<()> {
.subcommand(
App::new("sync")
.about("Set up or update yabridge for all plugins")
.arg(
Arg::with_name("no-verify")
.short('n')
.long("no-verify")
.about("Skip post-installation setup checks"),
)
.arg(
Arg::with_name("prune")
.short('p')
@@ -136,6 +142,7 @@ fn main() -> Result<()> {
("sync", Some(options)) => actions::do_sync(
&config,
&actions::SyncOptions {
no_verify: options.is_present("no-verify"),
prune: options.is_present("prune"),
verbose: options.is_present("verbose"),
},