diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-08-05 14:43:25 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-08-05 14:43:27 +0200 |
commit | 219d0a6812602680d108de573eb13807dd03031b (patch) | |
tree | 154173b439f4d3e4e9fc56e7cc320276c6a1f073 | |
parent | 2f0bb239e078b4f2e076972af038a8c4683ad62e (diff) |
Add debug output
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 6190324..5419691 100644 --- a/src/main.rs +++ b/src/main.rs @@ -150,6 +150,8 @@ fn app() -> Result<()> { match app.subcommand() { ("project", Some(mtch)) => { trace!("Handling project"); + trace!("sort-versions: {}", mtch.is_present("sort-version")); + trace!("sort-repository: {}", mtch.is_present("sort-repo")); let name = if app.is_present("input_stdin") { // Ugly, but works: @@ -168,9 +170,11 @@ fn app() -> Result<()> { .filter(|package| repository_filter.filter(package.repo())); if mtch.is_present("sort-versions"){ + debug!("Sorting by version"); iter.sorted_by(|a, b| Ord::cmp(a.version(), b.version())) .collect() } else if mtch.is_present("sort-repo") { + debug!("Sorting by repository"); iter.sorted_by(|a, b| Ord::cmp(a.repo(), b.repo())) .collect() } else { |