diff --git a/src/bin/coreutils.rs b/src/bin/coreutils.rs index 8440689c64b..d6487dc490e 100644 --- a/src/bin/coreutils.rs +++ b/src/bin/coreutils.rs @@ -212,8 +212,15 @@ fn gen_manpage( fn gen_coreutils_app(util_map: &UtilityMap) -> Command { let mut command = Command::new("coreutils"); - for (_, (_, sub_app)) in util_map { - command = command.subcommand(sub_app()); + for (name, (_, sub_app)) in util_map { + // Recreate a small subcommand with only the relevant info + // (name & short description) + let about = sub_app() + .get_about() + .expect("Could not get the 'about'") + .to_string(); + let sub_app = Command::new(name).about(about); + command = command.subcommand(sub_app); } command }