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

PArgList::PArgList ( int  theArgc,
char **  theArgv,
const PString argumentSpecStr,
BOOL  optionsBeforeParams = TRUE 
)

Create an argument list.

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

Definition at line 1462 of file osutils.cxx.

References Parse(), and SetArgs().

{
  // get the program name and path
  SetArgs(theArgc, theArgv);
  // we got an argument spec - so process them
  Parse(theArgumentSpec, optionsBeforeParams);
}


Generated by  Doxygen 1.6.0   Back to index