Moved configuration handling into cli handler code
Cleanup: moved the updating of configuration object to
command line handling code to remove some single-use booleans.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I503e72c07b35a1537d93241a26a92f87854ba105
diff --git a/cli.hpp b/cli.hpp
index f046b8c..6ae4e63 100644
--- a/cli.hpp
+++ b/cli.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include <attn/attn_config.hpp>
+
#include <string>
/*
@@ -28,12 +30,11 @@
*
* @brief Get configuration flags from command line
*
+ * Parse the command line for configuration options and update the
+ * attention handler configuration object as needed.
+ *
* @param i_begin command line args vector begin
* @param i_end command line args vector end
- * @param i_vital vital handler enable option
- * @param i_checkatop checkstop handler enable option
- * @param i_terminate TI handler enable option
- * @param i_breakpoints breakpoint handler enable option
+ * @param o_config pointer to attention handler configuration object
*/
-void parseConfig(char** i_begin, char** i_end, bool& i_vital, bool& i_checkstop,
- bool& i_terminate, bool& i_breakpoints);
+void parseConfig(char** i_begin, char** i_end, attn::Config* o_config);