Changeset 20108 for trunk


Ignore:
Timestamp:
10/06/21 15:15:06 (3 years ago)
Author:
tbretz
Message:
Allow to print uri
File:
1 edited

Legend:

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

    r19987 r20108  
    138138    debug.add_options()
    139139        ("dry-run",          po_bool(),         "Only write the queries to the query.log file. Internally overwrites uri with an empty string.")
     140        ("print-uri",        po_bool(),         "Print the interpreted URI (warning: passwort is printed to the console)")
    140141        ("print-connection", po_bool(),         "Print database connection information")
    141142#ifdef HAVE_HIGHLIGHT
     
    638639    const bool     feldman    = conf.Get<bool>("feldman-cousins");
    639640
     641    const bool print_uri        = conf.Get<bool>("print-uri");
    640642    const bool print_connection = conf.Get<bool>("print-connection");
    641643    const bool print_queries    = conf.Get<bool>("print-queries");
     
    678680    // Checking for database connection
    679681
    680     Database connection(uri); // Keep alive while fetching rows
     682    Database connection(uri, print_uri); // Keep alive while fetching rows
    681683
    682684    if (!uri.empty())
Note: See TracChangeset for help on using the changeset viewer.