From 8c21f09570649a96daff416bcf29107516b53e41 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Thu, 5 Dec 2024 15:40:34 +0100 Subject: [PATCH] rust/genprotimg: Add '--help-all' and '--help-experimental' for backward compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The '--help-all' and '--help-experimental' flags are now considered deprecated, but should still be available for backward compatibility. Fixes: f4cf4ae6ebb1 ("rust: Add a new tool called 'pvimg'") Reviewed-by: Steffen Eiden Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- rust/pvimg/src/cli.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rust/pvimg/src/cli.rs b/rust/pvimg/src/cli.rs index 8b63be4f..2ca4e901 100644 --- a/rust/pvimg/src/cli.rs +++ b/rust/pvimg/src/cli.rs @@ -248,6 +248,14 @@ pub struct GenprotimgCliOptions { // version command. #[arg(long, action = clap::ArgAction::SetTrue )] pub version: (), + + #[arg(long, action = clap::ArgAction::HelpLong, hide(true))] + /// Print help (deprecated, use '--help' instead). + help_all: (), + + #[arg(long, action = clap::ArgAction::HelpLong, hide(true))] + /// Print help (deprecated, use '--help' instead). + help_experimental: (), } impl GenprotimgCliOptions {