From 56ea2c0c1e57b4a5df20328a0489eed2000bf3e7 Mon Sep 17 00:00:00 2001 From: Wenyu Huang Date: Thu, 3 Nov 2022 00:15:29 -0400 Subject: [PATCH] nydus-image: fix clap Change requires_if to required_if_eq_any Signed-off-by: Wenyu Huang --- src/bin/nydus-image/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/nydus-image/main.rs b/src/bin/nydus-image/main.rs index 68ac7087633..0f5139e423c 100644 --- a/src/bin/nydus-image/main.rs +++ b/src/bin/nydus-image/main.rs @@ -213,7 +213,7 @@ fn prepare_cmd_args(bti_string: &'static str) -> App { .arg( Arg::new("blob-id") .long("blob-id") - .requires_ifs([("type", "estargztoc-ref"), ("type", "stargz_index")]) + .required_if_eq_any([("type", "estargztoc-ref"), ("type", "stargz_index")]) .help("specify blob id (as object id in backend/oss)") ) .arg(