forked from apiaryio/drafter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
37 lines (32 loc) · 832 Bytes
/
config.h
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
//
// vi:cin:et:sw=4 ts=4
//
// config.h - part of drafter
//
// Created by Jiri Kratochvil on 2015-02-13
// Copyright (c) 2015 Apiary Inc. All rights reserved.
//
#ifndef DRAFTER_CONFIG_H
#define DRAFTER_CONFIG_H
#include <string>
#include "Serialize.h"
struct Config {
std::string input;
bool lineNumbers;
bool validate;
drafter::SerializeFormat format;
bool sourceMap;
std::string output;
bool enableLog;
};
/**
* \brief parse commandline params
*
* \param argc argc as received to main()
* \param argv argv as received to main()
* \param conf output - parsed parameters
*
* side effect - can call exit() if wrong params are sent to program
*/
void ParseCommadLineOptions(int argc, const char* argv[], /** out */ Config& conf);
#endif /* end of include guard: DRAFTER_CONFIG_H */