aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
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;
}