-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshuffle.cc
33 lines (27 loc) · 1.14 KB
/
shuffle.cc
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
/*********************************************************************************
* File Name : shuffle.cc
* Created By : yuewu
* Description : shuffle file
**********************************************************************************/
#include <sol/tools.h>
#include <cmdline/cmdline.h>
using namespace sol;
using namespace std;
int main(int argc, char** argv) {
// check memory leak in VC++
#if defined(_MSC_VER) && defined(_DEBUG)
int tmpFlag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
tmpFlag |= _CRTDBG_LEAK_CHECK_DF;
_CrtSetDbgFlag(tmpFlag);
//_CrtSetBreakAlloc(231);
#endif
cmdline::parser parser;
parser.add<string>("input", 'i', "input data path", true);
parser.add<string>("input_type", 's', "input data type", true);
parser.add<string>("output", 'o', "output data path", false, "", "-");
parser.add<string>("output_type", 'd', "output data type", false, "", "");
parser.parse_check(argc, argv);
return shuffle(parser.get<string>("input"), parser.get<string>("input_type"),
parser.get<string>("output"),
parser.get<string>("output_type"));
}