equal
deleted
inserted
replaced
68 parameter.value = readNext(arguments, i); |
68 parameter.value = readNext(arguments, i); |
69 currentQuery.parameters.push_back(parameter); |
69 currentQuery.parameters.push_back(parameter); |
70 } else if (option == OPTION_FILE) { |
70 } else if (option == OPTION_FILE) { |
71 c.file = readNext(arguments, i); |
71 c.file = readNext(arguments, i); |
72 } else if (option == OPTION_KEEP_FILE) { |
72 } else if (option == OPTION_KEEP_FILE) { |
73 c.keepFile = true; |
73 string_t value = readNext(arguments, i); |
|
74 if (value == L"auto") c.keepFile = KeepFile::Automatic; |
|
75 else if (value == L"true") c.keepFile = KeepFile::Always; |
|
76 else if (value == L"false") c.keepFile = KeepFile::Never; |
|
77 else throw relpipe::cli::RelpipeCLIException(L"Unsupported keep-file value: " + value + L" Expecting: true, false, auto", relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); |
74 } else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); |
78 } else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); |
75 } |
79 } |
76 addQuery(c, currentQuery); // last relation |
80 addQuery(c, currentQuery); // last relation |
77 |
81 |
78 return c; |
82 return c; |