clap-permission-flag
Drop permissions of a CLI using structopt.
Usage
use Parser;
This crate depends on Unix features - on other platforms a stub implementation which has no flags and always succeeds if used.
Example Output
clap-permission-flag 0.2.0
Yoshua Wuyts <yoshuawuyts@gmail.com>
Drop permissions of a CLI using structopt
USAGE:
main [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--chroot <chroot> Change the process root directory
-g, --group <group> Change the process group
-u, --user <user> Change the process user
Installation
Since --chroot
may not be suitable for all applications, it is behind the
chroot
feature and must be enabled explicitly:
[]
= "0.2"
= ["chroot"]
See Also
License
MIT OR Apache-2.0