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
64
65
66
67
68
69
70
71
72
73
74
75
|
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
//----------------------------------------------------------
// CommandLine.h - tiny very specific command line parser
//----------------------------------------------------------
#ifndef _CommandLine
#define _CommandLine
class CommandLine
{
public:
class Options
{
public:
Options()
: actionASMDump(false)
, actionConcat(false)
, actionCopy(false)
, actionDump(false)
, actionDumpMap(false)
, actionDumpToc(false)
, actionFracture(false)
, actionILDump(false)
, actionInteg(false)
, actionMerge(false)
, actionRemoveDup(false)
, actionSmarty(false)
, actionStat(false)
, actionStrip(false)
, actionTOC(false)
, legacyCompare(false)
, recursive(false)
, stripCR(false)
, nameOfFile1(nullptr)
, nameOfFile2(nullptr)
, nameOfFile3(nullptr)
, indexCount(-1)
, indexes(nullptr)
{
}
bool actionASMDump;
bool actionConcat;
bool actionCopy;
bool actionDump;
bool actionDumpMap;
bool actionDumpToc;
bool actionFracture;
bool actionILDump;
bool actionInteg;
bool actionMerge;
bool actionRemoveDup;
bool actionSmarty;
bool actionStat;
bool actionStrip;
bool actionTOC;
bool legacyCompare;
bool recursive;
bool stripCR;
char* nameOfFile1;
char* nameOfFile2;
char* nameOfFile3;
int indexCount;
int* indexes;
};
static bool Parse(int argc, char* argv[], /* OUT */ Options* o);
private:
static void DumpHelp(const char* program);
};
#endif
|