mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-16 00:00:31 +02:00
30 lines
446 B
C++
30 lines
446 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Prism::Tui {
|
|
|
|
enum class Command {
|
|
Run,
|
|
ListDevices,
|
|
Help,
|
|
Version,
|
|
};
|
|
|
|
struct Options {
|
|
Command command = Command::Run;
|
|
std::string deviceId;
|
|
};
|
|
|
|
struct ParseResult {
|
|
bool ok = false;
|
|
Options options;
|
|
std::string error;
|
|
};
|
|
|
|
ParseResult parseArguments(const std::vector<std::string>& arguments);
|
|
std::string usageText();
|
|
|
|
} // namespace Prism::Tui
|