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

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;
}