ready_set_rust/
options.rs1use std::ffi::OsString;
4
5use clap::Parser;
6
7#[derive(Debug, Clone, Parser)]
9#[command(name = "ready-set-rust __set", about, long_about = None, no_binary_name = true)]
10#[allow(clippy::struct_excessive_bools)]
11pub struct SetOptions {
12 #[arg(long)]
14 pub force: bool,
15
16 #[arg(long)]
18 pub dry_run: bool,
19
20 #[arg(long = "member")]
22 pub members: Vec<String>,
23
24 #[arg(long)]
26 pub no_discover: bool,
27}
28
29impl SetOptions {
30 pub fn parse_args(args: &[OsString]) -> Result<Self, clap::Error> {
36 Self::try_parse_from(args)
37 }
38}