| 83 | */ |
| 84 | template <typename T> |
| 85 | static std::optional<T> ParseType(std::string_view arg) |
| 86 | { |
| 87 | auto i = ParseInteger(arg); |
| 88 | if (i.has_value()) return static_cast<T>(*i); |
| 89 | return std::nullopt; |
| 90 | } |
| 91 | |
| 92 | /** File list storage for the console, for caching the last 'ls' command. */ |
| 93 | class ConsoleFileList : public FileList { |
nothing calls this directly
no test coverage detected