summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
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 {