cwFlowTest.cpp : Added 'compare' as a command line arg. and removed it as a system param.

This commit is contained in:
kevin 2024-05-24 16:42:24 -04:00
parent d90a3c31da
commit a09ca54315

View File

@ -235,9 +235,13 @@ cw::rc_t cw::flow::test( const object_t* cfg, int argc, const char* argv[] )
goto errLabel; goto errLabel;
} }
// was 'compare' requested
if( argc > 2 && textLength(argv[2])!=0 and textIsEqual(argv[2],"compare") )
cmp_enable_fl = true;
// get the subnet cfg filename // get the subnet cfg filename
if((rc = cfg->getv_opt("subnet_cfg_fname",subnet_cfg_fname, if((rc = cfg->getv_opt("subnet_cfg_fname",subnet_cfg_fname,
"cmp_enable_fl", cmp_enable_fl,
"test_ref_dir",test_ref_dir)) != kOkRC ) "test_ref_dir",test_ref_dir)) != kOkRC )
{ {
rc = cwLogError(rc,"The name of the subnet file could not be parsed."); rc = cwLogError(rc,"The name of the subnet file could not be parsed.");