mirror of
https://github.com/orhun/systeroid
synced 2024-07-22 02:45:19 +00:00
feat(args): add ineffective arguments for BSD compatibility
This commit is contained in:
parent
e49155a503
commit
56a8f40203
|
@ -73,6 +73,8 @@ impl Args {
|
|||
);
|
||||
opts.optflag("q", "quiet", "do not print variable after the value is set");
|
||||
opts.optflag("w", "write", "only enable writing a value to variable");
|
||||
opts.optflag("o", "", "does nothing");
|
||||
opts.optflag("x", "", "does nothing");
|
||||
opts.optflag("d", "", "alias of -h");
|
||||
opts.optflag(
|
||||
"E",
|
||||
|
@ -114,7 +116,9 @@ impl Args {
|
|||
.replace(
|
||||
"{usage}",
|
||||
&opts
|
||||
.filter(|msg| !msg.contains("alias of"))
|
||||
.filter(|msg| {
|
||||
!(msg.contains("alias of") || msg.contains("does nothing"))
|
||||
})
|
||||
.collect::<Vec<String>>()
|
||||
.join("\n"),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue