|
|
|
@ -74,15 +74,20 @@ int main(int argc, char* argv[])
|
|
|
|
|
for (int i = 0; i < argc; i++) {
|
|
|
|
|
if (strcmp(argv[i], "-fill") == 0) {
|
|
|
|
|
if (argc < 4) {
|
|
|
|
|
cerr << "-fill must be followed by an rgb or hex code";
|
|
|
|
|
cerr << "-fill must be followed by a color name or hex code";
|
|
|
|
|
exit(1);
|
|
|
|
|
}
|
|
|
|
|
else if (i == 3) {
|
|
|
|
|
cerr << "-fill must be followed by an rgb or hex code";
|
|
|
|
|
cerr << "-fill must be followed by a color name or hex code";
|
|
|
|
|
exit(1);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
if (i == 2) {
|
|
|
|
|
input = download(argv[1]);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
input = download(argv[3]);
|
|
|
|
|
}
|
|
|
|
|
input.fill = argv[i + 1];
|
|
|
|
|
input_created = true;
|
|
|
|
|
}
|
|
|
|
|