1#ifndef KOUTIL_ARGS_RESULT_H
2#define KOUTIL_ARGS_RESULT_H
Represents the result of command-line parsing.
Definition result.h:18
const auto & errors() const
Returns the list of error messages.
Definition result.h:40
std::vector< std::string > m_errors
Definition result.h:56
bool need_exit() const
Checks if the parser requested program exit.
Definition result.h:34
bool has_error() const
Checks if any errors occurred.
Definition result.h:26
void add_error(std::string error)
Adds an error message.
Definition result.h:46
void exit()
Marks the result as requiring exit.
Definition result.h:52
bool m_exit
Definition result.h:55