Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename --gay flag to --rainbow #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int main(int argc, char *argv[])
{ "width", 1, NULL, 'w' },
{ "termwidth", 0, NULL, 't' },
{ "filter", 1, NULL, 'F' },
{ "gay", 0, NULL, 130 },
{ "rainbow", 0, NULL, 130 },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect, rainbow already exists and is 132.

{ "metal", 0, NULL, 131 },
{ "rainbow", 0, NULL, 132 },
{ "export", 1, NULL, 'E' },
Expand Down Expand Up @@ -105,7 +105,7 @@ int main(int argc, char *argv[])
if(filter_add(cx, caca_optarg) < 0)
return -1;
break;
case 130: /* --gay (alias to rainbow)*/
case 130: /* --rainbow (alias to rainbow)*/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't make sense, rainbow --rainbow is not an alias to --rainbow.

filter_add(cx, "rainbow");
break;
case 131: /* --metal */
Expand Down Expand Up @@ -248,4 +248,3 @@ static void usage(void)
{
printf("%s%s", HELP, USAGE);
}