no arguments will show help
This commit is contained in:
parent
941f6c6c2b
commit
ffa47f36cd
1 changed files with 4 additions and 0 deletions
4
main.cpp
4
main.cpp
|
@ -34,6 +34,10 @@ int main(int argc, char *argv[]) {
|
||||||
unsigned int width = DEFAULT_WIDTH;
|
unsigned int width = DEFAULT_WIDTH;
|
||||||
unsigned int height = DEFAULT_HEIGHT;
|
unsigned int height = DEFAULT_HEIGHT;
|
||||||
|
|
||||||
|
if ( argc <= 1 ) {
|
||||||
|
showHelpText();
|
||||||
|
}
|
||||||
|
|
||||||
for ( int i = 1; i < argc; ++i ) {
|
for ( int i = 1; i < argc; ++i ) {
|
||||||
if ( strcmp(argv[i], "-v") == 0 ) {
|
if ( strcmp(argv[i], "-v") == 0 ) {
|
||||||
verbose = 1;
|
verbose = 1;
|
||||||
|
|
Reference in a new issue