Changeset 19454


Ignore:
Timestamp:
Mar 28, 2019, 8:51:55 PM (3 weeks ago)
Author:
tbretz
Message:
I directly split now filename and default path into the two resources, this is more transparent for the user.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Configuration.cc

    r19385 r19454  
    468468    if (prgname.empty())
    469469        return;
     470
     471    const boost::filesystem::path rc(fName+".rc");
    470472
    471473    po::options_description generic("Generic options");
     
    495497        ("database",    var<string>(), "Database link as in\n\t[user[:password]@]server.com[:port]/database[?compress=0|1]\nOverwrites options from the default configuration file.")
    496498        ("no-database",                "Suppress any access to the database even if a database URL was set.")
    497         ("default",     var<string>(fName+string(".rc")), "Default configuration file.")
    498         ("prefix",      var<string>(), "Path to default configuration file.")
     499        ("default",     var<string>(rc.filename().string()), "Name of default configuration file.")
     500        ("prefix",      var<string>(rc.parent_path().string()), "Path to default configuration file.")
    499501        ;
    500502
Note: See TracChangeset for help on using the changeset viewer.