diff options
author | Pjotr Prins | 2017-12-08 11:23:06 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-12-08 11:23:06 +0000 |
commit | 522144c0ecc7404e29793bfca36377c05d6649b2 (patch) | |
tree | 97fe1d1f193d6adcf5abafba580720cb3e3f8211 /src/main.cpp | |
parent | 6ce9ada43491b773bcbb459d6f12d45e2d901ea0 (diff) | |
download | pangemma-522144c0ecc7404e29793bfca36377c05d6649b2.tar.gz |
Changed banner and behaviour
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index d752a72..706ac35 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,19 +33,23 @@ int main(int argc, char *argv[]) { if (argc <= 1) { cGemma.PrintHeader(); + cGemma.PrintHelp(0); return EXIT_SUCCESS; } if (argc == 2 && argv[1][0] == '-' && argv[1][1] == 'h') { + cGemma.PrintHeader(); cGemma.PrintHelp(0); return EXIT_SUCCESS; } if (argc == 3 && argv[1][0] == '-' && argv[1][1] == 'h') { string str; str.assign(argv[2]); + cGemma.PrintHeader(); cGemma.PrintHelp(atoi(str.c_str())); return EXIT_SUCCESS; } if (argc == 2 && argv[1][0] == '-' && argv[1][1] == 'l') { + cGemma.PrintHeader(); cGemma.PrintLicense(); return EXIT_SUCCESS; } @@ -57,6 +61,9 @@ int main(int argc, char *argv[]) { mkdir((cPar.path_out).c_str(), S_IRWXU | S_IRGRP | S_IROTH); } + if (!is_quiet_mode()) + cGemma.PrintHeader(); + if (cPar.error == true) { return EXIT_FAILURE; } |