From ebef5f54cb5de95e941d3b2927d1fd00b3d6c67b Mon Sep 17 00:00:00 2001 From: "Neo_Chen (BU4AK)" Date: Sun, 27 Oct 2024 03:16:55 +0800 Subject: [PATCH] fix(video2x): fixed -g option in src/video2x.c and help message for libplacebo (#1197) * fixed -g option in src/video2x.c and help message for libplacebo * style: sorted getopt options --------- Signed-off-by: Neo_Chen Co-authored-by: K4YT3X --- src/video2x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video2x.c b/src/video2x.c index a9e6ba4..350bf57 100644 --- a/src/video2x.c +++ b/src/video2x.c @@ -216,7 +216,7 @@ void parse_arguments(int argc, char **argv, struct arguments *arguments) { arguments->scaling_factor = 0; while ((c = getopt_long( - argc, argv, "i:o:f:a:c:x:p:b:q:s:w:h:r:m:v", long_options, &option_index + argc, argv, "i:o:f:a:c:x:p:b:q:s:w:h:g:m:r:v", long_options, &option_index )) != -1) { switch (c) { case 'i': @@ -337,7 +337,7 @@ void parse_arguments(int argc, char **argv, struct arguments *arguments) { fprintf( stderr, "Error: For libplacebo, shader name/path (-s), width (-w), " - "and height (-e) are required.\n" + "and height (-h) are required.\n" ); exit(1); }