1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 05:27:45 +00:00

dircolors: replace getopts with clap

Port argument parsing from getopts to clap.

The only difference I have observed is that clap auto-generates -h and
-V short options for help and version, and there is no way (in clap 2.x)
to disable them.
This commit is contained in:
Mitchell Mebane 2021-06-01 19:06:51 -05:00
parent 3cf966810f
commit efe1850087
3 changed files with 93 additions and 27 deletions

1
Cargo.lock generated
View file

@ -1893,6 +1893,7 @@ dependencies = [
name = "uu_dircolors"
version = "0.0.6"
dependencies = [
"clap",
"glob 0.3.0",
"uucore",
"uucore_procs",