• He Zhenxing's avatar
    Backport BUG#25192 Using relay-log and relay-log-index without values produces unexpected results. · 86c36aa1
    He Zhenxing authored
    Options loaded from config files were added before command line
    arguments, and they were parsed together, which could interprete
    the following:
    option-a
    option-b
    as --option-a=--option-b if 'option-a' requires a value, and 
    caused confusing.
    
    Because all options that requires a value are always given in
    the form '--option=value', so it's an error if there is no 
    '=value' part for such an option read from config file.
    
    This patch added a separator to separate the arguments from 
    config files and that from command line, so that they can be
    handled differently. And report an error for options loaded
    from config files that requires a value and is not given in the
    form '--option=value'.
    86c36aa1
my_print_defaults.c 6.67 KB