Add a flag to never output empty images.

This commit is contained in:
Martijn Versteegh
2018-10-31 16:18:29 +01:00
committed by sfan5
parent ac15bacf36
commit ee5b8a9f86
5 changed files with 26 additions and 0 deletions

View File

@ -24,6 +24,7 @@ void usage()
" --draworigin\n"
" --drawalpha\n"
" --noshading\n"
" --noemptyimage\n"
" --min-y <y>\n"
" --max-y <y>\n"
" --backend <backend>\n"
@ -87,6 +88,7 @@ int main(int argc, char *argv[])
{"zoom", required_argument, 0, 'z'},
{"colors", required_argument, 0, 'C'},
{"scales", required_argument, 0, 'f'},
{"noemptyimage", no_argument, 0, 'n'},
{0, 0, 0, 0}
};
@ -195,6 +197,9 @@ int main(int argc, char *argv[])
case 'C':
colors = optarg;
break;
case 'n':
generator.setDontWriteEmpty(true);
break;
default:
exit(1);
}