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

Conversation

jeromehardaway
Copy link

@jeromehardaway jeromehardaway commented May 24, 2024

Renames the --gay flag to --rainbow in the src/main.c file.

  • Updates the long_options array to replace the --gay flag with --rainbow, ensuring consistency with the intended alias for the rainbow filter.
  • Adjusts the case handling for the renamed flag in the command-line options parsing section, ensuring the application correctly interprets and applies the --rainbow flag when used.

For more details, open the Copilot Workspace session.

@morhook
Copy link

morhook commented Nov 11, 2024

LGTM!

@@ -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.

@@ -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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants