diff options
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -189,6 +189,24 @@ pub fn cli<'a>() -> App<'a> { .help("The name of the package") ) ) + .subcommand(App::new("env-of") + .alias("env") + .about("Show the ENV configured for a package") + .arg(Arg::with_name("package_name") + .required(true) + .multiple(false) + .index(1) + .value_name("PACKAGE_NAME") + .help("The name of the package") + ) + .arg(Arg::with_name("package_version_constraint") + .required(false) + .multiple(false) + .index(2) + .value_name("VERSION_CONSTRAINT") + .help("A version constraint to search for (optional)") + ) + ) } |