diff --git a/components/core/src/clp_s/CommandLineArguments.cpp b/components/core/src/clp_s/CommandLineArguments.cpp index 9527f6c99..c7fb9487e 100644 --- a/components/core/src/clp_s/CommandLineArguments.cpp +++ b/components/core/src/clp_s/CommandLineArguments.cpp @@ -262,22 +262,20 @@ CommandLineArguments::parse_arguments(int argc, char const** argv) { throw std::invalid_argument("No input paths specified."); } - if (parsed_command_line_options.count("file-type") > 0) { - if (cJsonFileType == file_type) { - m_file_type = FileType::Json; - } else if (cKeyValueIrFileType == file_type) { - m_file_type = FileType::KeyValueIr; - if (m_structurize_arrays) { - SPDLOG_ERROR( - "Invalid combination of arguments; --file-type {} and " - "--structurize-arrays can't be used together", - cKeyValueIrFileType - ); - return ParsingResult::Failure; - } - } else { - throw std::invalid_argument("Unknown FILE_TYPE: " + file_type); + if (cJsonFileType == file_type) { + m_file_type = FileType::Json; + } else if (cKeyValueIrFileType == file_type) { + m_file_type = FileType::KeyValueIr; + if (m_structurize_arrays) { + SPDLOG_ERROR( + "Invalid combination of arguments; --file-type {} and " + "--structurize-arrays can't be used together", + cKeyValueIrFileType + ); + return ParsingResult::Failure; } + } else { + throw std::invalid_argument("Unknown FILE_TYPE: " + file_type); } // Parse and validate global metadata DB config diff --git a/components/core/src/clp_s/clp-s.cpp b/components/core/src/clp_s/clp-s.cpp index 41acdc6ad..2c6639290 100644 --- a/components/core/src/clp_s/clp-s.cpp +++ b/components/core/src/clp_s/clp-s.cpp @@ -118,7 +118,7 @@ bool compress(CommandLineArguments const& command_line_arguments) { // Functionality Coming in later PR // -->Call new parsing function in Json Parser to parse IRv2 to archive // -->Check for error from parsing function - SPDLOG_ERROR("Compressing Key Valur IR Files is not yet supported"); + SPDLOG_ERROR("Compressing Key Value IR Files is not yet supported"); return false; } else { if (false == parser.parse()) {