Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add `-h` flag to binaries
xphoniex committed 2 years ago
commit 4869fe26e261392e5a9ac8c00e4ab2b23cfa09e1
parent 0e54c4a293793a4b863288c018d3fda85e61c336
31 files changed +31 -31
modified radicle-cli/src/commands/assign.rs
@@ -48,7 +48,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Long("to") => {
modified radicle-cli/src/commands/auth.rs
@@ -61,7 +61,7 @@ impl Args for Options {
                Long("stdin") => {
                    stdin = true;
                }
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                _ => return Err(anyhow::anyhow!(arg.unexpected())),
modified radicle-cli/src/commands/checkout.rs
@@ -49,7 +49,7 @@ impl Args for Options {
                Long("no-confirm") => {
                    // Ignored for now.
                }
-
                Long("help") => return Err(Error::Help.into()),
+
                Long("help") | Short('h') => return Err(Error::Help.into()),
                Long("remote") => {
                    let val = parser.value().unwrap();
                    remote = Some(term::args::did(&val)?);
modified radicle-cli/src/commands/clone.rs
@@ -74,7 +74,7 @@ impl Args for Options {
                Long("announce") => {
                    announce = true;
                }
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Value(val) if id.is_none() => {
modified radicle-cli/src/commands/comment.rs
@@ -66,7 +66,7 @@ impl Args for Options {
                }

                // Common.
-
                Long("help") => return Err(Error::Help.into()),
+
                Long("help") | Short('h') => return Err(Error::Help.into()),

                Value(val) if id.is_none() => {
                    let val = string(&val);
modified radicle-cli/src/commands/delegate.rs
@@ -68,7 +68,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Long("to") => {
modified radicle-cli/src/commands/edit.rs
@@ -40,7 +40,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Value(val) if id.is_none() => {
modified radicle-cli/src/commands/fork.rs
@@ -38,7 +38,7 @@ impl Args for Options {

        if let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Value(val) if rid.is_none() => {
modified radicle-cli/src/commands/help.rs
@@ -51,7 +51,7 @@ impl Args for Options {

        if let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                _ => return Err(anyhow::anyhow!(arg.unexpected())),
modified radicle-cli/src/commands/id.rs
@@ -133,7 +133,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Long("title") if op == Some(OperationName::Edit) => {
modified radicle-cli/src/commands/init.rs
@@ -132,7 +132,7 @@ impl Args for Options {
                Long("verbose") | Short('v') => {
                    verbose = true;
                }
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Value(val) if path.is_none() => {
modified radicle-cli/src/commands/inspect.rs
@@ -65,7 +65,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Long("refs") => {
modified radicle-cli/src/commands/issue.rs
@@ -135,7 +135,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Long("all") if op.is_none() || op == Some(OperationName::List) => {
modified radicle-cli/src/commands/ls.rs
@@ -36,7 +36,7 @@ impl Args for Options {

        if let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Long("verbose") | Short('v') => verbose = true,
modified radicle-cli/src/commands/node.rs
@@ -122,7 +122,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Value(val) if op.is_none() => match val.to_string_lossy().as_ref() {
modified radicle-cli/src/commands/patch.rs
@@ -251,7 +251,7 @@ impl Args for Options {
                Long("verbose") | Short('v') => {
                    verbose = true;
                }
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }

modified radicle-cli/src/commands/path.rs
@@ -37,7 +37,7 @@ impl Args for Options {
        #[allow(clippy::never_loop)]
        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                _ => return Err(anyhow!(arg.unexpected())),
modified radicle-cli/src/commands/remote.rs
@@ -67,7 +67,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(args::Error::Help.into());
                }
                Long("name") | Short('n') => {
modified radicle-cli/src/commands/review.rs
@@ -103,7 +103,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Long("revision") | Short('r') => {
modified radicle-cli/src/commands/rm.rs
@@ -49,7 +49,7 @@ impl Args for Options {
                Long("no-confirm") => {
                    confirm = false;
                }
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Value(val) if id.is_none() => {
modified radicle-cli/src/commands/self.rs
@@ -71,7 +71,7 @@ impl Args for Options {
                Long("ssh-fingerprint") if show.is_none() => {
                    show = Some(Show::SshFingerprint);
                }
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                _ => return Err(anyhow::anyhow!(arg.unexpected())),
modified radicle-cli/src/commands/sync.rs
@@ -96,7 +96,7 @@ impl Args for Options {

                    timeout = time::Duration::from_secs(secs);
                }
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Value(val) if rid.is_none() => {
modified radicle-cli/src/commands/tag.rs
@@ -44,7 +44,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Value(ref val) if id.is_none() => {
modified radicle-cli/src/commands/track.rs
@@ -91,7 +91,7 @@ impl Args for Options {
                (Long("fetch"), Some(Operation::TrackRepo { .. })) => fetch = true,
                (Long("no-fetch"), Some(Operation::TrackRepo { .. })) => fetch = false,
                (Long("verbose") | Short('v'), _) => verbose = true,
-
                (Long("help"), _) => {
+
                (Long("help") | Short('h'), _) => {
                    return Err(Error::Help.into());
                }
                _ => {
modified radicle-cli/src/commands/unassign.rs
@@ -47,7 +47,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Long("from") => {
modified radicle-cli/src/commands/untag.rs
@@ -44,7 +44,7 @@ impl Args for Options {

        while let Some(arg) = parser.next()? {
            match arg {
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                Value(ref val) if id.is_none() => {
modified radicle-cli/src/commands/untrack.rs
@@ -60,7 +60,7 @@ impl Args for Options {
                    }
                }
                (Long("verbose") | Short('v'), _) => verbose = true,
-
                (Long("help"), _) => {
+
                (Long("help") | Short('h'), _) => {
                    return Err(Error::Help.into());
                }
                _ => {
modified radicle-cli/src/commands/web.rs
@@ -62,7 +62,7 @@ impl Args for Options {
                    frontend = Some(parser.value()?.to_string_lossy().to_string())
                }
                Long("json") => json = true,
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    return Err(Error::Help.into());
                }
                _ => {
modified radicle-httpd/src/main.rs
@@ -64,7 +64,7 @@ fn parse_options() -> Result<httpd::Options, lexopt::Error> {

                aliases.insert(alias, id);
            }
-
            Long("help") => {
+
            Long("help") | Short('h') => {
                println!("usage: radicle-httpd [--listen <addr>] [--alias <name> <rid>]..");
                process::exit(0);
            }
modified radicle-node/src/main.rs
@@ -98,7 +98,7 @@ impl Options {
                    let addr = parser.value()?.parse()?;
                    listen.push(addr);
                }
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    println!("{HELP_MSG}");
                    process::exit(0);
                }
modified radicle-tui/src/main.rs
@@ -41,7 +41,7 @@ impl Options {
                    println!("{NAME} {VERSION}+{GIT_HEAD}");
                    process::exit(0);
                }
-
                Long("help") => {
+
                Long("help") | Short('h') => {
                    println!("{HELP}");
                    process::exit(0);
                }