src/CLIParser.h
branchv_0
changeset 41 e1339b8e838e
parent 39 f33464965693
child 42 ca216de56ef0
equal deleted inserted replaced
40:59f3cb26bfe7 41:e1339b8e838e
    59 	}
    59 	}
    60 	
    60 	
    61 	Configuration::ColorScheme parseColorScheme(const relpipe::reader::string_t& value) {
    61 	Configuration::ColorScheme parseColorScheme(const relpipe::reader::string_t& value) {
    62 		if (value == L"greenish") return Configuration::ColorScheme::Greenish;
    62 		if (value == L"greenish") return Configuration::ColorScheme::Greenish;
    63 		else if (value == L"amberish") return Configuration::ColorScheme::Amberish;
    63 		else if (value == L"amberish") return Configuration::ColorScheme::Amberish;
    64 		else if (value == L"monochrome") return Configuration::ColorScheme::Monochrome;
    64 		else if (value == L"black-and-white") return Configuration::ColorScheme::BlackAndWhite;
    65 		else if (value == L"midnight") return Configuration::ColorScheme::Midnight;
    65 		else if (value == L"midnight") return Configuration::ColorScheme::Midnight;
    66 		else throw relpipe::cli::RelpipeCLIException(L"Unable to parse ColorScheme value: " + value + L" (expecting green-screen, monochrome or midnight)", relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
    66 		else throw relpipe::cli::RelpipeCLIException(L"Unable to parse ColorScheme value: " + value + L" (expecting greenish, amberish, midnight or black-and-white)", relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
    67 	}
    67 	}
    68 	
    68 	
    69 	Configuration::TableStyle parseTableStyle(const relpipe::reader::string_t& value) {
    69 	Configuration::TableStyle parseTableStyle(const relpipe::reader::string_t& value) {
    70 		if (value == L"rounded") return Configuration::TableStyle::Rounded;
    70 		if (value == L"rounded") return Configuration::TableStyle::Rounded;
    71 		else if (value == L"sharp") return Configuration::TableStyle::Sharp;
    71 		else if (value == L"sharp") return Configuration::TableStyle::Sharp;