Incorporate feedback: don't break --gay, fix whitespace
This commit is contained in:
parent
be1054fefd
commit
da93385cd5
1 changed files with 7 additions and 3 deletions
|
@ -65,8 +65,9 @@ int main(int argc, char *argv[])
|
|||
{ "width", 1, NULL, 'w' },
|
||||
{ "termwidth", 0, NULL, 't' },
|
||||
{ "filter", 1, NULL, 'F' },
|
||||
{ "rainbow", 0, NULL, 130 },
|
||||
{ "gay", 0, NULL, 130 },
|
||||
{ "metal", 0, NULL, 131 },
|
||||
{ "rainbow", 0, NULL, 132 },
|
||||
{ "export", 1, NULL, 'E' },
|
||||
{ "irc", 0, NULL, 140 },
|
||||
{ "html", 0, NULL, 141 },
|
||||
|
@ -104,12 +105,15 @@ int main(int argc, char *argv[])
|
|||
if(filter_add(cx, caca_optarg) < 0)
|
||||
return -1;
|
||||
break;
|
||||
case 130: /* --rainbow */
|
||||
case 130: /* --gay (alias to rainbow)*/
|
||||
filter_add(cx, "rainbow");
|
||||
break;
|
||||
case 131: /* --metal */
|
||||
filter_add(cx, "metal");
|
||||
break;
|
||||
case 132: /* --rainbow */
|
||||
filter_add(cx, "rainbow");
|
||||
break;
|
||||
case 'w': /* --width */
|
||||
cx->term_width = atoi(caca_optarg);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue