Returns text indicating the longname and shortname of the option suitable for displaying in help information. \note Not intended to be called from user code. */
| 315 | \note Not intended to be called from user code. |
| 316 | */ |
| 317 | std::string nameDescrip() const |
| 318 | { |
| 319 | std::string s("--"); |
| 320 | s += m_longname; |
| 321 | if (m_shortname.size()) |
| 322 | s += ", -" + m_shortname; |
| 323 | return s; |
| 324 | } |
| 325 | /** |
| 326 | Returns text indicating the name of the option suitable for displaying |
| 327 | in "usage" text. |