blob: f046b8c529bf3173ebdca28c6034db3657b0e9ce [file] [log] [blame]
Ben Tyner7212d212020-03-31 09:44:41 -05001#pragma once
2
3#include <string>
4
5/*
6 * @brief Search the command line arguments for an option
7 *
8 * @param i_begin command line args vector begin
9 * @param i_end command line args vector end
10 * @param i_option configuration option to look for
11 *
12 * @return true = option found on command line
13 */
14bool getCliOption(char** i_begin, char** i_end, const std::string& i_option);
15
16/*
17 * @brief Search the command line arguments for a setting value
18 *
19 * @param i_begin command line args vector begin
20 * @param i_end command line args vectory end
21 * @param i_setting configuration setting to look for
22 *
23 * @return value of the setting or 0 if setting not found or value not given
24 */
25char* getCliSetting(char** i_begin, char** i_end, const std::string& i_setting);
26
27/*
28 *
29 * @brief Get configuration flags from command line
30 *
31 * @param i_begin command line args vector begin
32 * @param i_end command line args vector end
33 * @param i_vital vital handler enable option
34 * @param i_checkatop checkstop handler enable option
35 * @param i_terminate TI handler enable option
36 * @param i_breakpoints breakpoint handler enable option
37 */
38void parseConfig(char** i_begin, char** i_end, bool& i_vital, bool& i_checkstop,
39 bool& i_terminate, bool& i_breakpoints);