From b9758364059d52e153a9f1b4fcae3bc3f3e68422 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 7 Jul 2017 06:54:26 +0000 Subject: Fix spacing --- src/main.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b7ac884..c7f0573 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,12 +25,12 @@ using namespace std; -int main(int argc, char * argv[]) { - GEMMA cGemma; +int main(int argc, char * argv[]) { + GEMMA cGemma; PARAM cPar; if (argc <= 1) { - cGemma.PrintHeader(); + cGemma.PrintHeader(); return EXIT_SUCCESS; } if (argc==2 && argv[1][0] == '-' && argv[1][1] == 'h') { @@ -46,27 +46,27 @@ int main(int argc, char * argv[]) { if (argc==2 && argv[1][0] == '-' && argv[1][1] == 'l') { cGemma.PrintLicense(); return EXIT_SUCCESS; - } - - cGemma.Assign(argc, argv, cPar); + } + + cGemma.Assign(argc, argv, cPar); ifstream check_dir((cPar.path_out).c_str()); if (!check_dir) { mkdir((cPar.path_out).c_str(), S_IRWXU|S_IRGRP|S_IROTH); - } - + } + if (cPar.error==true) {return EXIT_FAILURE;} - + if (cPar.mode_silence) {stringstream ss; cout.rdbuf (ss.rdbuf());} - + cPar.CheckParam(); - + if (cPar.error==true) {return EXIT_FAILURE;} - + cGemma.BatchRun(cPar); - + if (cPar.error==true) {return EXIT_FAILURE;} - + cGemma.WriteLog(argc, argv, cPar); - + return EXIT_SUCCESS; } -- cgit v1.2.3