diff --git a/radicle-cli/src/commands/help.rs b/radicle-cli/src/commands/help.rs index db94909a..245b7c2f 100644 --- a/radicle-cli/src/commands/help.rs +++ b/radicle-cli/src/commands/help.rs @@ -1,4 +1,6 @@ use std::ffi::OsString; +use std::process::Command; +use std::str; use crate::terminal as term; use crate::terminal::args::{Args, Error, Help}; @@ -81,6 +83,16 @@ pub fn run(_options: Options, ctx: impl term::Context) -> anyhow::Result<()> { term::format::dim(help.description) ); } + // Obtain the rad-web help. + if let Ok(output) = Command::new("rad-web").arg("--help").output() { + if let Some(description) = str::from_utf8(&output.stdout)?.lines().nth(1) { + term::info!( + "\t{} {}", + term::format::bold(format!("{:-12}", "web")), + term::format::dim(description) + ); + } + } term::blank(); term::print("See `rad --help` to learn about a specific command."); term::blank(); diff --git a/radicle-httpd/src/commands/web.rs b/radicle-httpd/src/commands/web.rs index 96490d8d..513bacd4 100644 --- a/radicle-httpd/src/commands/web.rs +++ b/radicle-httpd/src/commands/web.rs @@ -15,7 +15,7 @@ use radicle_cli::terminal::args::{Args, Error, Help}; pub const HELP: Help = Help { name: "web", - description: "Start HTTP API server and connect the web explorer to it", + description: "Run the HTTP daemon and connect the web explorer to it", version: env!("CARGO_PKG_VERSION"), usage: r#" Usage