Changeset 19071


Ignore:
Timestamp:
07/21/18 15:39:04 (6 years ago)
Author:
tbretz
Message:
Sorted the options a bit.
File:
1 edited

Legend:

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

    r19070 r19071  
    3434        ("create",         po_switch(),               "Create the table if it does not yet exist")
    3535        ("update",         po_switch(),               "Update the table.position instead of inserting it (disables drop, create and delete)")
    36         ("no-insert",      po_switch(),               "Does not insert or update any data to any table")
    37         ("dry-run",        po_switch(),               "Skip any query which changes the databse (might result in consecutive failures)")
    3836        ("ra",             var<double>(),             "Right ascension of the source (use together with --dec)")
    3937        ("dec",            var<double>(),             "Declination of the source (use together with --ra)")
    4038        ("focal-dist",     var<double>(4889.),        "Focal distance of the camera in millimeter")
    41         ("verbose,v",      var<uint16_t>(1),          "Verbosity (0: quiet, 1: default, 2: more, 3, ...)")
     39        ;
     40
     41    po::options_description debug("Debug options");
     42    debug.add_options()
     43        ("no-insert",      po_switch(),               "Does not insert or update any data to any table")
     44        ("dry-run",        po_switch(),               "Skip any query which changes the databse (might result in consecutive failures)")
    4245        ("print-meta",     po_switch(),               "Print meta-queries (DROP, CREATE, DELETE, SELECT)")
    4346        ("print-insert",   po_switch(),               "Print the INSERT/UPDATE queries")
     47        ("verbose,v",      var<uint16_t>(1),          "Verbosity (0: quiet, 1: default, 2: more, 3, ...)")
    4448        ;
    4549
     
    4852
    4953    conf.AddOptions(control);
     54    conf.AddOptions(debug);
    5055    conf.SetArgumentPositions(p);
    5156}
Note: See TracChangeset for help on using the changeset viewer.