* Copyright (C) 2014 Michael Goehler
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2014 Michael Goehler
*
* This program is free software: you can redistribute it and/or modify
fprintf(stderr, "%s", " add it multiple times to increases debug level\n");
fprintf(stderr, "%s", " -f, --nofade disable color fading in 256 color mode\n");
fprintf(stderr, "%s", " -h, --help display this help and exit\n");
fprintf(stderr, "%s", " add it multiple times to increases debug level\n");
fprintf(stderr, "%s", " -f, --nofade disable color fading in 256 color mode\n");
fprintf(stderr, "%s", " -h, --help display this help and exit\n");
fprintf(stderr, "%s", " -t, --notrans disable transparency in transparent terminal\n");
fprintf(stderr, "%s", "\nWith no FILE, or when FILE is -, read standard input.\n\n");
exit(EXIT_FAILURE);
fprintf(stderr, "%s", " -t, --notrans disable transparency in transparent terminal\n");
fprintf(stderr, "%s", "\nWith no FILE, or when FILE is -, read standard input.\n\n");
exit(EXIT_FAILURE);
// define command-line options
struct option longopts[] = {
{ "debug", no_argument, 0, 'd' },
{ "nofade", no_argument, 0, 'f' },
{ "help", no_argument, 0, 'h' },
// define command-line options
struct option longopts[] = {
{ "debug", no_argument, 0, 'd' },
{ "nofade", no_argument, 0, 'f' },
{ "help", no_argument, 0, 'h' },
{ "notrans", no_argument, 0, 't' },
{ "version", no_argument, 0, 'v' },
{ 0, 0, 0, 0 }
{ "notrans", no_argument, 0, 't' },
{ "version", no_argument, 0, 'v' },
{ 0, 0, 0, 0 }
- while ((opt = getopt_long(argc, argv, ":dfhtv", longopts, NULL)) != -1) {
+ while ((opt = getopt_long(argc, argv, ":dfhitv", longopts, NULL)) != -1) {
switch(opt) {
case 'd': debug += 1; break;
case 'f': nofade = 1; break;
case 'h': usage(); break;
switch(opt) {
case 'd': debug += 1; break;
case 'f': nofade = 1; break;
case 'h': usage(); break;
case 't': notrans = 1; break;
case 'v': version(); break;
case ':': fprintf(stderr, "%s: '%c' requires an argument\n", argv[0], optopt); usage(); break;
case 't': notrans = 1; break;
case 'v': version(); break;
case ':': fprintf(stderr, "%s: '%c' requires an argument\n", argv[0], optopt); usage(); break;