summaryrefslogtreecommitdiffstats
path: root/core/io/cmdline.hh
blob: 8b2b4eec5ff4dc3366ab7b23f572be1d6721dacc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef CORE_IO_CMDLINE_HH
#define CORE_IO_CMDLINE_HH 1
#pragma once

namespace io::cmdline
{
void create(int argc, char** argv);
void insert(std::string_view option);
void insert(std::string_view option, std::string_view argument);
std::string_view get(std::string_view option, std::string_view fallback = "");
const char* get_cstr(std::string_view option, const char* fallback = nullptr);
bool contains(std::string_view option);
} // namespace io::cmdline

#endif // CORE_IO_CMDLINE_HH