UserInterface/Check_Options [ Functions ]
FUNCTION
Check the validity of all the options in configuration.options[]. This runs a number of checks.
SYNOPSIS
int Check_Options( void )
RESULT
- EXIT_SUCCESS -- all options are correct.
- EXIT_FAILURE -- one of more options incorrect.
SOURCE
{ int status; RB_Say( "Checking the options.\n", SAY_INFO ); status = Check_Option_Spelling( ); if ( status == EXIT_SUCCESS ) { status = Do_Option_Tests( ); if ( status == EXIT_SUCCESS ) { status = Check_Item_Options( ); } else { Print_Short_Use( ); } } else { Print_Short_Use( ); } /* TODO free option_tests */ return status; }