Adam Lesinski 98aa3ad6e4 Add PNG and 9-patch support
Change-Id: I9ecdfdf82b82d59084490da518e167e256afd5f2
2015-04-09 17:19:06 -07:00

29 lines
711 B
C++

#ifndef AAPT_FLAG_H
#define AAPT_FLAG_H
#include "StringPiece.h"
#include <functional>
#include <string>
#include <vector>
namespace aapt {
namespace flag {
void requiredFlag(const StringPiece& name, const StringPiece& description,
std::function<void(const StringPiece&)> action);
void optionalFlag(const StringPiece& name, const StringPiece& description,
std::function<void(const StringPiece&)> action);
void optionalSwitch(const StringPiece& name, const StringPiece& description, bool* result);
void parse(int argc, char** argv, const StringPiece& command);
const std::vector<std::string>& getArgs();
} // namespace flag
} // namespace aapt
#endif // AAPT_FLAG_H