|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Converts a string token to std::filesystem::path, requiring the path to exist and be a regular file. More...
#include <action.hh>
Public Types | |
| template<class Input> | |
| using | after_type = std::filesystem::path |
| template<class Prev> | |
| using | storage_type = void |
Public Member Functions | |
| auto | operator() (ActionCtx< void > ctx, ActionResult< std::string_view > input) const -> ActionResult< std::filesystem::path > |
Static Public Attributes | |
| template<class Input> | |
| static constexpr bool | accepts_input = Path::template accepts_input<Input> |
Converts a string token to std::filesystem::path, requiring the path to exist and be a regular file.
Returns ErrorCode::invalid_value if the path does not exist or is not a regular file.
| using cli::conversion::ExistingFile::after_type = std::filesystem::path |
| using cli::conversion::ExistingFile::storage_type = void |
|
inline |
|
staticconstexpr |