From c62405043b80f2e9873b994d75bc8f6a462cbec8 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Mon, 27 Jan 2025 17:47:01 +0100 Subject: [PATCH] bin: Remove obsolete argument parsing from help command --- bin/commands/help.rs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/bin/commands/help.rs b/bin/commands/help.rs index 78fd7621..f48d7d25 100644 --- a/bin/commands/help.rs +++ b/bin/commands/help.rs @@ -21,25 +21,7 @@ const COMMANDS: &[Help] = &[tui_help::HELP]; pub struct Options {} impl Args for Options { - fn from_args(args: Vec) -> anyhow::Result<(Self, Vec)> { - use lexopt::prelude::*; - - let mut parser = lexopt::Parser::from_args(args); - let mut forward = true; - - while let Some(arg) = parser.next()? { - match arg { - Long("no-forward") => { - forward = false; - } - _ => { - if !forward { - return Err(Error::HelpManual { name: "rad-tui" }.into()); - } - return Err(anyhow::anyhow!(arg.unexpected())); - } - } - } + fn from_args(_args: Vec) -> anyhow::Result<(Self, Vec)> { Err(Error::HelpManual { name: "rad-tui" }.into()) } }