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 <chenkolei@gmail.com>
Co-authored-by: K4YT3X <i@k4yt3x.com>
This commit is contained in:
Neo_Chen (BU4AK) 2024-10-27 03:16:55 +08:00 committed by GitHub
parent 747d85cf9b
commit ebef5f54cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}