Incorporate feedback: don't break --gay, fix whitespace

This commit is contained in:
Kevin Behrens 2015-05-07 13:16:49 -05:00
parent be1054fefd
commit da93385cd5

View file

@ -65,8 +65,9 @@ int main(int argc, char *argv[])
{ "width", 1, NULL, 'w' }, { "width", 1, NULL, 'w' },
{ "termwidth", 0, NULL, 't' }, { "termwidth", 0, NULL, 't' },
{ "filter", 1, NULL, 'F' }, { "filter", 1, NULL, 'F' },
{ "rainbow", 0, NULL, 130 }, { "gay", 0, NULL, 130 },
{ "metal", 0, NULL, 131 }, { "metal", 0, NULL, 131 },
{ "rainbow", 0, NULL, 132 },
{ "export", 1, NULL, 'E' }, { "export", 1, NULL, 'E' },
{ "irc", 0, NULL, 140 }, { "irc", 0, NULL, 140 },
{ "html", 0, NULL, 141 }, { "html", 0, NULL, 141 },
@ -104,12 +105,15 @@ int main(int argc, char *argv[])
if(filter_add(cx, caca_optarg) < 0) if(filter_add(cx, caca_optarg) < 0)
return -1; return -1;
break; break;
case 130: /* --rainbow */ case 130: /* --gay (alias to rainbow)*/
filter_add(cx, "rainbow"); filter_add(cx, "rainbow");
break; break;
case 131: /* --metal */ case 131: /* --metal */
filter_add(cx, "metal"); filter_add(cx, "metal");
break; break;
case 132: /* --rainbow */
filter_add(cx, "rainbow");
break;
case 'w': /* --width */ case 'w': /* --width */
cx->term_width = atoi(caca_optarg); cx->term_width = atoi(caca_optarg);
break; break;
@ -213,7 +217,7 @@ int main(int argc, char *argv[])
" -t, --termwidth adapt to terminal's width\n" \ " -t, --termwidth adapt to terminal's width\n" \
" -F, --filter <filters> apply one or several filters to the text\n" \ " -F, --filter <filters> apply one or several filters to the text\n" \
" -F, --filter list list available filters\n" \ " -F, --filter list list available filters\n" \
" --rainbow rainbow filter (same as -F rainbow)\n" \ " --rainbow rainbow filter (same as -F rainbow)\n" \
" --metal metal filter (same as -F metal)\n" \ " --metal metal filter (same as -F metal)\n" \
" -E, --export <format> select export format\n" \ " -E, --export <format> select export format\n" \
" -E, --export list list available export formats\n" \ " -E, --export list list available export formats\n" \