2

我有一个拍手结构如下:

#[derive(Clap)]
#[clap(
    version = "0.1.0",
    author = "..."
)]
pub struct Cli {
    #[clap(long)]
    arg_a: Option<String>,

    #[clap(long)]
    arg_b: Option<String>,

    #[clap(long)]
    arg_c: Option<String>,

    #[clap(long)]
    other_arguments: Option<usize>,
}

我如何指定至少一个{arg_a, arg_b, arg_c}必须存在,但也可以存在更多?

4

0 回答 0