h1-mod/src/common/utils/flags.hpp
m d1ff8a8f9c integrate mods system w/ fs_game + cleanup
doing `+set fs_game "mods/deathrun` or `-mod "mods/deathrun"` will result in the same effect. `-mod` is mainly for singleplayer usage but also works in multiplayer.
2022-12-29 12:08:46 -06:00

14 lines
386 B
C++

#pragma once
#include <string>
#include <optional>
namespace utils::flags
{
bool has_flag(const std::string& flag);
std::optional<std::string> get_flag(const std::string& flag);
std::optional<std::string> get_flag(const std::string& flag, const std::string& shortname);
std::string get_flag(const std::string& flag, const std::string& shortname,
const std::string& default_);
}