summaryrefslogtreecommitdiffstats
path: root/core/io/cmdline.hh
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/cmdline.hh')
-rw-r--r--core/io/cmdline.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/io/cmdline.hh b/core/io/cmdline.hh
index d68d9ef..8b2b4ee 100644
--- a/core/io/cmdline.hh
+++ b/core/io/cmdline.hh
@@ -5,9 +5,11 @@
namespace io::cmdline
{
void create(int argc, char** argv);
-void insert(const char* option, const char* argument = nullptr);
-const char* get(const char* option, const char* fallback = nullptr);
-bool contains(const char* option);
+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