Skip to content

Commit

Permalink
Fix yabridgectl sync flags in new CLI parser
Browse files Browse the repository at this point in the history
This behavior changed, and flags now explicitly need this action to
function as flags.
  • Loading branch information
robbert-vdh committed Dec 10, 2023
1 parent d641bc7 commit f071851
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tools/yabridgectl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

use anyhow::Result;
use clap::builder::TypedValueParser;
use clap::{command, value_parser, Arg, Command};
use clap::{command, value_parser, Arg, ArgAction, Command};
use colored::Colorize;
use std::collections::HashSet;
use std::env;
Expand Down Expand Up @@ -94,25 +94,29 @@ fn main() -> Result<()> {
Arg::new("force")
.short('f')
.long("force")
.help("Always update files, even not necessary"),
.help("Always update files, even not necessary")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("no-verify")
.short('n')
.long("no-verify")
.help("Skip post-installation setup checks"),
.help("Skip post-installation setup checks")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("prune")
.short('p')
.long("prune")
.help("Remove unrelated or leftover .so files"),
.help("Remove unrelated or leftover .so files")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("verbose")
.short('v')
.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(
Expand Down

0 comments on commit f071851

Please sign in to comment.