24 bool *p_hyph =
new bool[ argCount ];
26 string *p_args =
new string[ argCount ];
29 for(
int i = 1; i <= argCount; i++ )
32 p_args[i-1] = argVar[i];
36 for(
int i = 0; i < argCount; i++ )
39 if( p_args[i][0] ==
'-' )
53 for(
int i = 0; i < argCount && errorFlag == 0; i++ )
56 if( p_hyph[i] == 1 && errorFlag == 0 )
59 for(
unsigned int j = 1; j < p_args[i].length() && errorFlag == 0; j++ )
62 switch( p_args[i][j] ) {
73 if( i+1 <= argCount-1 )
80 if( i+1 <= argCount-1 )
87 if( i+1 <= argCount-1 )
95 if( i+1 <= argCount-1 )
111 if( i+1 <= argCount-1 )
143 if( i+1 <= argCount-1 )
151 if( i+1 <= argCount-1 )
159 if( i+1 <= argCount-1 )
169 errorArg = p_args[i][j];
176 errorFlag =
argsCheck( errorFlag, errorArg );
198 cout <<
"Incorrect argument: -" << errorArg << endl
199 <<
"run 'clerk -h' for more information" << endl;
205 cout <<
"run 'clerk -F <DIR>' to create clerk.conf" << endl
206 <<
"in one of the above directories" << endl;
214 while( inputArg[inputArg.length()-1] ==
SLASH[0] )
217 inputArg.erase( inputArg.length()-1, 1 );
224 while( outputArg[outputArg.length()-1] ==
SLASH[0] )
227 outputArg.erase( outputArg.length()-1, 1 );
static bool getFlags(flagValue)
Retrieves the user configuration flags from an array.
output summary and error information
perform an internal action instead of writing a script
the location of the blacklist file
static bool argsCheck(int, string)
Reads command line args into their appropriate variables. (WTF?)
rewrite showlist, blacklist, config files
not sure if needed (WTF?)
holds xml file name and location
static string getOptions(optionValue)
Retrieves the user configuration options from an array.
output directory from args
not sure if needed (WTF?)
static bool argsRead(int, char **)
Reads command line args into their appropriate variables.
holds gap file name and location
holds script file name and location
take no real actions - just output to stdout
write a script instead of internal action
output to log instead of stdout
The ConfigOpts class stores all config options, settings, and flags for clerk.
input directory/file from args
static void setFlags(flagValue)
Sets the user configuration flags into an array.
holds log file name and location
the location of the showlist file
static void setOptions(optionValue, string)
Sets the user configuration options into an array.