Radish alpha
r
rad:z39mP9rQAaGmERfUMPULfPUi473tY
Radicle terminal user interface
Radicle
Git
bin: Remove obsolete argument parsing from help command
Erik Kundt committed 1 year ago
commit c62405043b80f2e9873b994d75bc8f6a462cbec8
parent 0c7868c
1 file changed +1 -19
modified 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<OsString>) -> anyhow::Result<(Self, Vec<OsString>)> {
-
        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<OsString>) -> anyhow::Result<(Self, Vec<OsString>)> {
        Err(Error::HelpManual { name: "rad-tui" }.into())
    }
}