Synopsis
PDX_MSGT cfg_PreProcessCmdLineArg(long option, int argc, char **argv, DDF *ddf, char **cmdLine)
Purpose
Pre-process command line arguments for cfg_ParseFile.
Description
Command line option passed in that match the description of a field in the current DDF, will be processed as such: In DDF: vstring config_file = "config" Valid Command Line argument: <executable> -config asys.cfg Translation: config_file = "asys.cfg"; The -h option is reserved for printing the usage. The configuration DDF passed in can not have a -h option.
This functionality only supports single TF configuration DDF's.
Input
option
Options (not used)
argc
Number of command line arguments
argv
Array of character string pointers of command line arguments
ddf
Configuration DDF
Output
cmdLine
Translated Command line
Return
CFG_NOERR
CFG error Code
.fi