We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d44e96 commit 83c8517Copy full SHA for 83c8517
src/bin/coreutils.rs
@@ -212,8 +212,15 @@ fn gen_manpage<T: uucore::Args>(
212
213
fn gen_coreutils_app<T: uucore::Args>(util_map: &UtilityMap<T>) -> Command {
214
let mut command = Command::new("coreutils");
215
- for (_, (_, sub_app)) in util_map {
216
- command = command.subcommand(sub_app());
+ for (name, (_, sub_app)) in util_map {
+ // Recreate a small subcommand with only the relevant info
217
+ // (name & short description)
218
+ let about = sub_app()
219
+ .get_about()
220
+ .expect("Could not get the 'about'")
221
+ .to_string();
222
+ let sub_app = Command::new(name).about(about);
223
+ command = command.subcommand(sub_app);
224
}
225
command
226
0 commit comments