|
match util { |
|
"--list" => { |
|
// If --help is also present, show usage instead of list |
|
if args.any(|arg| arg == "--help" || arg == "-h") { |
|
usage(&utils, binary_as_util); |
|
process::exit(0); |
|
} |
|
let utils: Vec<_> = utils.keys().collect(); |
|
for util in utils { |
|
println!("{util}"); |
|
} |
|
process::exit(0); |
|
} |
But busybox do same things with --list at --list --help. We should remove it.
coreutils/src/bin/coreutils.rs
Lines 77 to 89 in 24d2263
But busybox do same things with
--listat--list --help. We should remove it.