[PATCH] pacsort: fix short version option
Johannes Löthberg
johannes at kyriasis.com
Wed May 30 21:28:12 UTC 2018
Quoting Michael Straube (2018-05-29 19:07:18)
> 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
Applied, thanks.
--
Sincerely,
Johannes Löthberg
PGP Key ID: 0x50FB9B273A9D0BB5
PGP Key FP: 5134 EF9E AF65 F95B 6BB1 608E 50FB 9B27 3A9D 0BB5
https://theos.kyriasis.com/~kyrias/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1727 bytes
Desc: signature
URL: <https://lists.archlinux.org/pipermail/pacman-contrib/attachments/20180530/fecb8062/attachment.asc>
More information about the pacman-contrib
mailing list