diff -r 5844cd8e81ca -r 37bc3edef76f rust/rhg/src/commands/root.rs --- a/rust/rhg/src/commands/root.rs Mon Nov 14 17:18:56 2022 +0100 +++ b/rust/rhg/src/commands/root.rs Tue Nov 15 00:02:43 2022 +0100 @@ -9,8 +9,8 @@ Returns 0 on success. "; -pub fn args() -> clap::App<'static, 'static> { - clap::SubCommand::with_name("root").about(HELP_TEXT) +pub fn args() -> clap::Command { + clap::command!("root").about(HELP_TEXT) } pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> {