Changeset 12126 for trunk/FACT++/src


Ignore:
Timestamp:
09/17/11 09:39:00 (13 years ago)
Author:
tbretz
Message:
Made --help output more compatible with help2man.
File:
1 edited

Legend:

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

    r11468 r12126  
    454454    out << endl;
    455455    out << kBold << "List of available states:" << endl;
    456     out << endl;
    457456    for (StateNames::const_iterator i=fStateNames.begin(); i!=fStateNames.end(); i++)
    458         out << kBold << setw(5) << i->first << kReset << ": " << kYellow << i->second.first << kBlue << " (" << i->second.second << ")" << endl;
     457    {
     458        ostringstream state;
     459        state << i->first;
     460        out << " -[" << kBold << state.str() << kReset << "]:" << setfill(' ') << setw(6-state.str().length()) << ' ' << kYellow << i->second.first << kBlue << " (" << i->second.second << ")" << endl;
     461    }
    459462    out << endl;
    460463}
Note: See TracChangeset for help on using the changeset viewer.