performance: Cache used command value

The detected command does not change once CLI2::analysis has been
performed. Cache the value of the command to avoid the need to
re-discover the correct value each time we're interested in it.
This commit is contained in:
Tomas Babej 2021-04-23 22:39:19 -04:00
parent a19773873a
commit c3f9d09d22
2 changed files with 9 additions and 1 deletions

View file

@ -116,7 +116,8 @@ public:
std::vector <std::pair <std::string, std::string>> _id_ranges {};
std::vector <std::string> _uuid_list {};
bool _context_added {false};
std::string _command {""};
bool _context_added {false};
};
#endif