|
|
@ -17,16 +17,18 @@ |
|
|
|
int verbose; |
|
|
|
|
|
|
|
void showHelpText() { |
|
|
|
std::cout << "Awesome Attractor, version " << __DATE__ << std::endl; |
|
|
|
std::cout << "Usage: AwesomeAttractor [OPTION]... FILE" << std::endl << std::endl; |
|
|
|
std::cout << "Optons:" << std::endl; |
|
|
|
std::cout << " --help Shows this help" << std::endl; |
|
|
|
std::cout << " -q quiet mode" << std::endl; |
|
|
|
std::cout << " -v verbose mode" << std::endl; |
|
|
|
std::cout << " -V loud mode" << std::endl; |
|
|
|
std::cout << " -w N Sets width of output image to N" << std::endl; |
|
|
|
std::cout << " -h N Sets height of output image to N" << std::endl; |
|
|
|
std::cout << " -i N Sets number of iterations to N" << std::endl; |
|
|
|
std::cout << |
|
|
|
"Awesome Attractor, version " __DATE__ "\n" |
|
|
|
"Usage: AwesomeAttractor [OPTION]... FILE\n" |
|
|
|
"Optons:\n" |
|
|
|
" -h, --help Shows this help\n" |
|
|
|
" -q quiet mode\n" |
|
|
|
" -v verbose mode\n" |
|
|
|
" -V loud mode\n" |
|
|
|
" -W N Sets width of output image to N\n" |
|
|
|
" -H N Sets height of output image to N\n" |
|
|
|
" -I N Sets number of iterations to N\n" |
|
|
|
<< std::endl; |
|
|
|
exit(0); |
|
|
|
} |
|
|
|
|
|
|
@ -48,13 +50,15 @@ int main(int argc, char* argv[]) { |
|
|
|
verbose = -1; |
|
|
|
} else if(strcmp(argv[i], "--help") == 0) { |
|
|
|
showHelpText(); |
|
|
|
} else if(strcmp(argv[i], "-h") == 0) { |
|
|
|
showHelpText(); |
|
|
|
} else if(strcmp(argv[i], "-V") == 0) { |
|
|
|
verbose = 3; |
|
|
|
} else if(strcmp(argv[i], "-w") == 0) { |
|
|
|
} else if(strcmp(argv[i], "-W") == 0) { |
|
|
|
width = atoi(argv[++i]); |
|
|
|
} else if(strcmp(argv[i], "-h") == 0) { |
|
|
|
} else if(strcmp(argv[i], "-H") == 0) { |
|
|
|
height = atoi(argv[++i]); |
|
|
|
} else if(strcmp(argv[i], "-i") == 0) { |
|
|
|
} else if(strcmp(argv[i], "-I") == 0) { |
|
|
|
iterations = atoi(argv[++i]); |
|
|
|
} else { |
|
|
|
attractorFile = argv[i]; |
|
|
|