fix(args): remove conflicting short arguments

This commit is contained in:
Orhun Parmaksız 2021-12-18 15:48:02 +03:00
parent 41dabbf217
commit 5fcbf2ca1c
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -57,7 +57,7 @@ impl Args {
opts.optflag("A", "", "alias of -a");
opts.optflag("X", "", "alias of -a");
opts.optflag(
"D",
"",
"deprecated",
"include deprecated variables while listing",
);
@ -85,7 +85,7 @@ impl Args {
"provide a detailed explanation for variable",
);
opts.optopt(
"d",
"D",
"docs",
"set the path of the kernel documentation",
"<path>",
@ -157,9 +157,9 @@ impl Args {
verbose: matches.opt_present("v"),
quiet: matches.opt_present("q"),
write: matches.opt_present("w"),
kernel_docs: matches.opt_str("d").map(PathBuf::from),
kernel_docs: matches.opt_str("D").map(PathBuf::from),
display_type,
display_deprecated: matches.opt_present("D"),
display_deprecated: matches.opt_present("deprecated"),
ignore_errors: matches.opt_present("e"),
tree_output: matches.opt_present("T"),
no_pager: matches.opt_present("P"),