sevreporter/src/sevreporter.cxx
//
// ProcessCmdLineArgs:
// returns: -1 if missing or invalid arguments, 0 otherwise
//
-1 if missing or invalid arguments, 0 otherwise
- 1 if missing or invalid arguments 0 otherwise
static int processCmdLineArgs(int argc, char **argv)
{
  int retval = -1;
  if ( argc > 1 && argv )
    {
      parray args(16);
      for (int i = 1; i < argc; i++)
	args.insert((void *)argv[i]);
      argParam *cmd_line_opts = setup_argPrmAssign(rptgenArg_xname, rptgenArg_ID_LIST_SIZE);
      if ( cmd_line_opts && cmd_line_opts->extract(&args) > 0)
	{
	  if ( rptgenArg_init_values(cmd_line_opts) >= 0 )
	    {
	      retval = 0;
	    }
	}
    }
  return retval;
}
static int processCmdLineArgs ( int argc , char * * argv ) { int retval = -1 ; if ( argc > 1 && argv ) { parray args ( 16 ) ; for ( int i = 1 ; i < argc ; i ++ ) args . insert ( ( void * ) argv [ i ] ) ; argParam * cmd_line_opts = setup_argPrmAssign ( rptgenArg_xname , rptgenArg_ID_LIST_SIZE ) ; if ( cmd_line_opts && cmd_line_opts -> extract ( & args ) > 0 ) { if ( rptgenArg_init_values ( cmd_line_opts ) >= 0 ) { retval = 0 ; } } } return retval ; }
ProcessCmdLineArgs:
returns: -1 if missing or invalid arguments, 0 otherwise
ProcessCmdLineArgs : returns : - 1 if missing or invalid arguments 0 otherwise
// get the args from the command-line // build an argParam out of them // fill the arg table with defaults, or values from command-line