| 4948 | } |
| 4949 | |
| 4950 | void usage( std::ostream& os, std::string const& procName ) const { |
| 4951 | validate(); |
| 4952 | os << "usage:\n " << procName << " "; |
| 4953 | argSynopsis( os ); |
| 4954 | if( !m_options.empty() ) { |
| 4955 | os << " [options]\n\nwhere options are: \n"; |
| 4956 | optUsage( os, 2 ); |
| 4957 | } |
| 4958 | os << "\n"; |
| 4959 | } |
| 4960 | std::string usage( std::string const& procName ) const { |
| 4961 | std::ostringstream oss; |
| 4962 | usage( oss, procName ); |
no test coverage detected