-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmain.cpp
More file actions
64 lines (52 loc) · 2.12 KB
/
Copy pathmain.cpp
File metadata and controls
64 lines (52 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*****************************************************************************
* GATB : Genome Assembly Tool Box
* Copyright (C) 2014 INRIA
* Authors: R.Chikhi, G.Rizk, E.Drezen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
/********************************************************************************/
#include <Minia.hpp>
#include "build_info.hpp"
using namespace std;
/********************************************************************************/
int main (int argc, char* argv[])
{
if(argc > 1 && ( strcmp(argv[1],"--version")==0 || strcmp(argv[1],"-v")==0 || strcmp(argv[1],"-version")==0 ) ){
std::cout << "Minia version " << STR_MINIA_VERSION << std::endl;
#ifdef GIT_SHA1
std::cout << "git commit " << GIT_SHA1 << std::endl;
#endif
std::cout << "Using gatb-core version "<< System::info().getVersion() << std::endl;
std::cout << "OS: " << STR_MINIA_OPERATING_SYSTEM << std::endl;
std::cout << "compiler: " << STR_MINIA_COMPILER << std::endl;
return EXIT_SUCCESS;
}
// We define a try/catch block in case some method fails (bad filename for instance)
try
{
/** We execute dsk. */
Minia().run (argc, argv);
}
catch (OptionFailure& e)
{
return e.displayErrors (cout);
}
catch (Exception& e)
{
cerr << "EXCEPTION: " << e.getMessage() << endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}