blob: 32f5f2cb61cb82f75f30cd1290d0869854703e43 [file] [log] [blame]
Adam Lesinski98aa3ad2015-04-06 11:46:52 -07001#ifndef AAPT_FLAG_H
2#define AAPT_FLAG_H
3
4#include "StringPiece.h"
5
6#include <functional>
7#include <string>
8#include <vector>
9
10namespace aapt {
11namespace flag {
12
13void requiredFlag(const StringPiece& name, const StringPiece& description,
14 std::function<void(const StringPiece&)> action);
15
16void optionalFlag(const StringPiece& name, const StringPiece& description,
17 std::function<void(const StringPiece&)> action);
18
19void optionalSwitch(const StringPiece& name, const StringPiece& description, bool* result);
20
21void parse(int argc, char** argv, const StringPiece& command);
22
23const std::vector<std::string>& getArgs();
24
25} // namespace flag
26} // namespace aapt
27
28#endif // AAPT_FLAG_H