• He Zhenxing's avatar
    BUG#57953 my_load_defaults return junk argument ----args-separator---- to caller · b695495e
    He Zhenxing authored
    After fix of bug#25192, load_defaults() will add an args separator
    to distinguish options loaded from configure files from that provided
    in the command line. One problem of this is that the args separator
    would be added no matter the application need it or not.
    
    Fixed the problem by adding an option:
      bool my_getopt_use_args_separator;
    to control whether the separator will be added or not. And also
    added functions:
      bool my_getopt_is_args_separator(const char* arg);
    to check if the argument is the separator or not.
    b695495e
my_getopt.c 40.8 KB