Ignore:
Timestamp:
05/13/11 15:48:57 (14 years ago)
Author:
tbretz
Message:
Use the functionality of boost program_options better; implemented po_bool() as a special po_switch() case; added some comments.
File:
1 edited

Legend:

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

    r10700 r10707  
    17071707        ("dns",       var<string>("localhost"), "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)")
    17081708        ("log,l",     var<string>(n), "Write log-file")
    1709         ("no-dim,d",  po_switch(),    "Disable dim services")
     1709        ("no-dim,d",  po_bool(),      "Disable dim services")
    17101710        ("console,c", var<int>(),     "Use console (0=shell, 1=simple buffered, X=simple unbuffered)")
    17111711        ;
     
    17141714    control.add_options()
    17151715        ("addr,a",        var<string>("localhost:5000"),  "Network address of FTM")
    1716         ("quiet,q",       po_switch(),   "Disable printing contents of all received messages (except dynamic data) in clear text.")
    1717         ("hex-out",       po_switch(),   "Enable printing contents of all printed messages also as hex data.")
    1718         ("dynamic-out",   po_switch(),   "Enable printing received dynamic data.")
     1716        ("quiet,q",       po_bool(),  "Disable printing contents of all received messages (except dynamic data) in clear text.")
     1717        ("hex-out",       po_bool(),  "Enable printing contents of all printed messages also as hex data.")
     1718        ("dynamic-out",   po_bool(),  "Enable printing received dynamic data.")
    17191719//        ("default-setup", var<string>(), "Binary file with static data loaded whenever a connection to the FTM was established.")
    17201720        ;
Note: See TracChangeset for help on using the changeset viewer.