///////////////////////////////////////////////////////////////////////////
| 680 | |
| 681 | //////////////////////////////////////////////////////////////////////////////// |
| 682 | std::string CLI2::getCommand(bool canonical) const { |
| 683 | // Shortcut if analysis has been finalized |
| 684 | if (_command != "") return _command; |
| 685 | |
| 686 | for (const auto& a : _args) |
| 687 | if (a.hasTag("CMD")) return a.attribute(canonical ? "canonical" : "raw"); |
| 688 | |
| 689 | return ""; |
| 690 | } |
| 691 | |
| 692 | //////////////////////////////////////////////////////////////////////////////// |
| 693 | const std::string CLI2::dump(const std::string& title) const { |
no test coverage detected