diff options
author | jaseg <git@jaseg.net> | 2020-12-25 15:08:16 +0100 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2020-12-25 15:08:16 +0100 |
commit | 460259df6f2af878fa576a0d698f9074dc793c04 (patch) | |
tree | 5538c38aebcaa08ad5ae064e14a7935575c05065 | |
parent | cac131290657659241284d88b3e80ef2175620c5 (diff) | |
download | lolcat-460259df6f2af878fa576a0d698f9074dc793c04.tar.gz lolcat-460259df6f2af878fa576a0d698f9074dc793c04.tar.bz2 lolcat-460259df6f2af878fa576a0d698f9074dc793c04.zip |
Add long option names
-rwxr-xr-x | lolcat.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -109,7 +109,7 @@ int main(int argc, char** argv) for (i = 1; i < argc; i++) { char* endptr; - if (!strcmp(argv[i], "-h")) { + if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--horizontal-frequency")) { if ((++i) < argc) { freq_h = strtod(argv[i], &endptr); if (*endptr) @@ -117,7 +117,7 @@ int main(int argc, char** argv) } else { usage(); } - } else if (!strcmp(argv[i], "-v")) { + } else if (!strcmp(argv[i], "-v") || !strcmp(argv[i], "--vertical-frequency")) { if ((++i) < argc) { freq_v = strtod(argv[i], &endptr); if (*endptr) @@ -125,13 +125,13 @@ int main(int argc, char** argv) } else { usage(); } - } else if (!strcmp(argv[i], "-f")) { + } else if (!strcmp(argv[i], "-f") || !strcmp(argv[i], "--force-color")) { colors = 1; - } else if (!strcmp(argv[i], "-l")) { + } else if (!strcmp(argv[i], "-l") || !strcmp(argv[i], "--no-force-locale")) { force_locale = 0; - } else if (!strcmp(argv[i], "-r")) { + } else if (!strcmp(argv[i], "-r") || !strcmp(argv[i], "--random")) { random = 1; - } else if (!strcmp(argv[i], "-b")) { + } else if (!strcmp(argv[i], "-b") || !strcmp(argv[i], "--24bit")) { rgb = 1; } else if (!strcmp(argv[i], "--version")) { version(); |