Returns text indicating the name of the option suitable for displaying in "usage" text. \note Not intended to be called from user code. */
| 328 | \note Not intended to be called from user code. |
| 329 | */ |
| 330 | std::string commandLine() const |
| 331 | { |
| 332 | std::string s; |
| 333 | if (m_positional == PosType::Required) |
| 334 | s = m_longname; |
| 335 | else if (m_positional == PosType::Optional) |
| 336 | s += '[' + m_longname + ']'; |
| 337 | return s; |
| 338 | } |
| 339 | |
| 340 | protected: |
| 341 | std::string m_longname; |
no outgoing calls
no test coverage detected