diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-09-10 10:24:59 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-09-10 11:04:12 +0200 |
commit | 30b34be5779927424ea74464134139e27ed6b3e3 (patch) | |
tree | e3c88ce12c4da961453535696d217ef6ae666828 /src/cli.rs | |
parent | ef1e753d6d0f5e216b6ddbc41e2ea0a8c6e8942a (diff) |
Add helper to get latest version of a package
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -79,6 +79,23 @@ pub fn build_cli<'a>() -> App<'a, 'a> { .help("Sort output by repository") .conflicts_with("sort-version") ) + .arg(Arg::with_name("latest") + .long("latest") + .required(false) + .multiple(false) + .takes_value(false) + .help("Try to find the lastest version (version is string-compared if not used with --semver)") + .conflicts_with("sort-version") + .conflicts_with("sort-repo") + ) + .arg(Arg::with_name("semver") + .long("semver") + .required(false) + .multiple(false) + .takes_value(false) + .requires("latest") + .help("Try to find latest version using semver. If semver could not be parsed, equality is assumed, which might yield bogus results.") + ) ) .subcommand(SubCommand::with_name("problems") @@ -161,4 +178,4 @@ pub fn build_cli<'a>() -> App<'a, 'a> { In this case, repolocli is only a easier-to-use 'jq' (if you don't know jq, look it up NOW!). "#) -}
\ No newline at end of file +} |