Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PArgList::PArgList ( int  theArgc,
char **  theArgv,
const char *  argumentSpecPtr = NULL,
BOOL  optionsBeforeParams = TRUE 
)

Create an argument list.

Parameters:
theArgc  Count of argument strings in theArgv
theArgv  An array of strings constituting the arguments
argumentSpecPtr  The specification C string for argument options. See description for details.
optionsBeforeParams  Parse options only before parameters

Definition at line 1449 of file osutils.cxx.

References Parse(), and SetArgs().

{
  // get the program arguments
  SetArgs(theArgc, theArgv);

  // if we got an argument spec - so process them
  if (theArgumentSpec != NULL)
    Parse(theArgumentSpec, optionsBeforeParams);
}


Generated by  Doxygen 1.6.0   Back to index