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/test/end2end/main.cpp b/test/end2end/main.cpp
index fe637f6..c523842 100644
--- a/test/end2end/main.cpp
+++ b/test/end2end/main.cpp
@@ -9,24 +9,17 @@
 {
     int rc = 0; // return code
 
-    // attention handler configuration flags
-    bool vital_enable     = true;
-    bool checkstop_enable = true;
-    bool ti_enable        = true;
-    bool bp_enable        = true;
-
     // initialize pdbg targets
     pdbg_targets_init(nullptr);
 
-    // convert cmd line args to config values
-    parseConfig(argv, argv + argc, vital_enable, checkstop_enable, ti_enable,
-                bp_enable);
-
     // create attention handler config object
-    attn::Config config(vital_enable, checkstop_enable, ti_enable, bp_enable);
+    attn::Config attnConfig;
+
+    // convert cmd line args to config values
+    parseConfig(argv, argv + argc, &attnConfig);
 
     // exercise attention gpio event path
-    attn::attnHandler(&config);
+    attn::attnHandler(&attnConfig);
 
     return rc;
 }