From 80c42b9707c7c44b7379734575c1b82fc97e95bf Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 2 Aug 2018 11:48:49 +0200 Subject: Explain --reduce better --- sinksh/syntax_modules/sink_list.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sinksh/syntax_modules/sink_list.cpp b/sinksh/syntax_modules/sink_list.cpp index 966548f..c091cd4 100644 --- a/sinksh/syntax_modules/sink_list.cpp +++ b/sinksh/syntax_modules/sink_list.cpp @@ -52,8 +52,7 @@ Syntax::List syntax() list.addParameter("id", { .name = "id", .help = "List only the content with the given ID" }); list.addFlag("showall", "Show all properties"); list.addParameter("show", { .name = "property", .help = "Only show the given property" }); - // TODO: what is that? - list.addParameter("reduce", { .name = "property:$selectorProperty", .help = "Reduce the results" }); + list.addParameter("reduce", { .name = "property:$selectorProperty", .help = "Combine the result with the same $property, sorted by $selectorProperty" }); list.addParameter("sort", { .name = "property", .help = "Sort the results according to the given property" }); list.addParameter("limit", { .name = "count", .help = "Limit the results" }); -- cgit v1.2.3