summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index c04052c..95ef9a2 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -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
+}