[PATCH] pacsort: fix short version option

Michael Straube straubem at gmx.de
Tue May 29 17:07:18 UTC 2018


Add short version option to optstring.

Signed-off-by: Michael Straube <straubem at gmx.de>
---
 src/pacsort.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pacsort.c b/src/pacsort.c
index ad1ffd6..3a9fe9c 100644
--- a/src/pacsort.c
+++ b/src/pacsort.c
@@ -454,7 +454,7 @@ static int parse_options(int argc, char **argv)
 		{0, 0, 0, 0}
 	};
 
-	while((opt = getopt_long(argc, argv, "fhk:rt:z", opttable, NULL)) != -1) {
+	while((opt = getopt_long(argc, argv, "fhk:rt:vz", opttable, NULL)) != -1) {
 		switch(opt) {
 			case 'f':
 				opts.filemode = 1;
-- 
2.17.0


More information about the pacman-contrib mailing list