Fix su --shell argument handling (#2529)
This fixes https://github.com/tiann/KernelSU/issues/2523.
This commit is contained in:
@@ -104,10 +104,11 @@ pub fn root_shell() -> Result<()> {
|
|||||||
"preserve-environment",
|
"preserve-environment",
|
||||||
"preserve the entire environment",
|
"preserve the entire environment",
|
||||||
);
|
);
|
||||||
opts.optflag(
|
opts.optopt(
|
||||||
"s",
|
"s",
|
||||||
"shell",
|
"shell",
|
||||||
"use SHELL instead of the default /system/bin/sh",
|
"use SHELL instead of the default /system/bin/sh",
|
||||||
|
"SHELL",
|
||||||
);
|
);
|
||||||
opts.optflag("v", "version", "display version number and exit");
|
opts.optflag("v", "version", "display version number and exit");
|
||||||
opts.optflag("V", "", "display version code and exit");
|
opts.optflag("V", "", "display version code and exit");
|
||||||
|
|||||||
Reference in New Issue
Block a user