Sha256: 7ed7dc623b29614ee4c169f8c0b3f43c5b47dce43e06f095e2fe04657f08f493

Contents?: true

Size: 842 Bytes

Versions: 5

Compression:

Stored size: 842 Bytes

Contents

//
// 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;
    drafter::ASTType astType;
    bool sourceMap;
    std::string output;
};

/**
 *  \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 */

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lounge_lizard-0.1.4 ext/drafter/src/config.h
lounge_lizard-0.1.3 ext/drafter/src/config.h
lounge_lizard-0.1.2 ext/drafter/src/config.h
lounge_lizard-0.1.1 ext/drafter/src/config.h
lounge_lizard-0.1.0 ext/drafter/src/config.h