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
10
src/main.c
10
src/main.c
|
@ -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;
|
||||
|
@ -213,7 +217,7 @@ int main(int argc, char *argv[])
|
|||
" -t, --termwidth adapt to terminal's width\n" \
|
||||
" -F, --filter <filters> apply one or several filters to the text\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" \
|
||||
" -E, --export <format> select export format\n" \
|
||||
" -E, --export list list available export formats\n" \
|
||||
|
|
Loading…
Reference in a new issue