mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Fix yabridgectl sync flags in new CLI parser
This behavior changed, and flags now explicitly need this action to function as flags.
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use clap::builder::TypedValueParser;
|
use clap::builder::TypedValueParser;
|
||||||
use clap::{command, value_parser, Arg, Command};
|
use clap::{command, value_parser, Arg, ArgAction, Command};
|
||||||
use colored::Colorize;
|
use colored::Colorize;
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use std::env;
|
use std::env;
|
||||||
@@ -94,25 +94,29 @@ fn main() -> Result<()> {
|
|||||||
Arg::new("force")
|
Arg::new("force")
|
||||||
.short('f')
|
.short('f')
|
||||||
.long("force")
|
.long("force")
|
||||||
.help("Always update files, even not necessary"),
|
.help("Always update files, even not necessary")
|
||||||
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("no-verify")
|
Arg::new("no-verify")
|
||||||
.short('n')
|
.short('n')
|
||||||
.long("no-verify")
|
.long("no-verify")
|
||||||
.help("Skip post-installation setup checks"),
|
.help("Skip post-installation setup checks")
|
||||||
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("prune")
|
Arg::new("prune")
|
||||||
.short('p')
|
.short('p')
|
||||||
.long("prune")
|
.long("prune")
|
||||||
.help("Remove unrelated or leftover .so files"),
|
.help("Remove unrelated or leftover .so files")
|
||||||
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("verbose")
|
Arg::new("verbose")
|
||||||
.short('v')
|
.short('v')
|
||||||
.long("verbose")
|
.long("verbose")
|
||||||
.help("Print information about plugins being set up or skipped"),
|
.help("Print information about plugins being set up or skipped")
|
||||||
|
.action(ArgAction::SetTrue),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
|
|||||||
Reference in New Issue
Block a user