summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2020-12-25 15:08:16 +0100
committerjaseg <git@jaseg.net>2020-12-25 15:08:16 +0100
commit460259df6f2af878fa576a0d698f9074dc793c04 (patch)
tree5538c38aebcaa08ad5ae064e14a7935575c05065
parentcac131290657659241284d88b3e80ef2175620c5 (diff)
downloadlolcat-460259df6f2af878fa576a0d698f9074dc793c04.tar.gz
lolcat-460259df6f2af878fa576a0d698f9074dc793c04.tar.bz2
lolcat-460259df6f2af878fa576a0d698f9074dc793c04.zip
Add long option names
-rwxr-xr-xlolcat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lolcat.c b/lolcat.c
index 1357394..9d872ed 100755
--- a/lolcat.c
+++ b/lolcat.c
@@ -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();