[pacman-dev] [PATCH] pacsort help clearly states that files contain inputs to be sorted

Ashley Whetter ashley at awhetter.co.uk
Sun May 1 21:24:20 UTC 2016

Fixes FS#44121

Signed-off-by: Ashley Whetter <ashley at awhetter.co.uk>
 src/util/pacsort.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/util/pacsort.c b/src/util/pacsort.c
index c69ae2f..662b250 100644
--- a/src/util/pacsort.c
+++ b/src/util/pacsort.c
@@ -427,7 +427,10 @@ static void usage(void)
 			"  -k, --key <index>       sort input starting on specified column\n"
 			"  -r, --reverse           sort in reverse order (default: oldest to newest)\n"
 			"  -t, --separator <sep>   specify field separator (default: space)\n"
-			"  -z, --null              lines end with null bytes, not newlines\n\n");
+			"  -z, --null              lines end with null bytes, not newlines\n\n"
+			"pacsort writes the sorted concatenation of all files, to standard output.\n"
+			"Files should contain a list of inputs to sort.\n\n"
+			"Standard input is read when no files are given.\n\n");
 static int parse_options(int argc, char **argv)

More information about the pacman-dev mailing list