--- a/rust/rhg/src/commands/debugignorerhg.rs Mon Nov 14 17:18:56 2022 +0100
+++ b/rust/rhg/src/commands/debugignorerhg.rs Tue Nov 15 00:02:43 2022 +0100
@@ -1,5 +1,4 @@
use crate::error::CommandError;
-use clap::SubCommand;
use hg;
use hg::matchers::get_ignore_matcher;
use hg::StatusError;
@@ -13,8 +12,8 @@
Some options might be missing, check the list below.
";
-pub fn args() -> clap::App<'static, 'static> {
- SubCommand::with_name("debugignorerhg").about(HELP_TEXT)
+pub fn args() -> clap::Command {
+ clap::command!("debugignorerhg").about(HELP_TEXT)
}
pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> {