mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 11:55:15 +00:00
When a tool application is invoked with an unknown operation, an error message is printed, which includes all the known operations, with all their aliases. This is collected in `std::vector<std::string_view>`. The problem is that the vector containing alias names, is returned as a value, so the code ends up creating views to temporaries. Fix this by returning alias vector with const&. Fixes: #17584 Closes scylladb/scylladb#17586