Skip to content

Commit

Permalink
Merge pull request uutils#6692 from cakebaker/coreutils_add_list_opti…
Browse files Browse the repository at this point in the history
…on_to_help

bin/coreutils: add `--list` to help output
  • Loading branch information
sylvestre authored Sep 13, 2024
2 parents 82d403b + f0b983b commit db40287
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bin/coreutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ include!(concat!(env!("OUT_DIR"), "/uutils_map.rs"));

fn usage<T>(utils: &UtilityMap<T>, name: &str) {
println!("{name} {VERSION} (multi-call binary)\n");
println!("Usage: {name} [function [arguments...]]\n");
println!("Usage: {name} [function [arguments...]]");
println!(" {name} --list\n");
println!("Options:");
println!(" --list lists all defined functions, one per row\n");
println!("Currently defined functions:\n");
#[allow(clippy::map_clone)]
let mut utils: Vec<&str> = utils.keys().map(|&s| s).collect();
Expand Down

0 comments on commit db40287

Please sign in to comment.