diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 92c4d90..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,11 +61,14 @@ 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; } - if (cPar.mode_silence) { + if (is_quiet_mode()) { stringstream ss; cout.rdbuf(ss.rdbuf()); } |