// file: check_for_help.C // #include "./process_data.h" // define the command line options #define HELP_COMMAND "more ./process_data.help" #define HELP_OPTION "-help" //----------------------------------------------------------------------------- // function: check_for_help_C // // arguments: // int argc: (input) number of command line arguments // char** argv: (input) command line arguments // // returns: // L_TRUE if no help option is specified // exits after displaying a help message otherwise // // checks whether a help option was specified //----------------------------------------------------------------------------- int check_for_help_C(int argc, char** argv) { // declare local variables // int arg_index = 0; // check if a help option was specified on the command line // loop over all arguments and all options for (arg_index=0; arg_index