| 4467 | } |
| 4468 | |
| 4469 | void usage( std::ostream& os, std::string const& procName ) const { |
| 4470 | validate(); |
| 4471 | os << "usage:\n " << procName << " "; |
| 4472 | argSynopsis( os ); |
| 4473 | if( !m_options.empty() ) { |
| 4474 | os << " [options]\n\nwhere options are: \n"; |
| 4475 | optUsage( os, 2 ); |
| 4476 | } |
| 4477 | os << "\n"; |
| 4478 | } |
| 4479 | std::string usage( std::string const& procName ) const { |
| 4480 | std::ostringstream oss; |
| 4481 | usage( oss, procName ); |
no test coverage detected