Skip to content

Commit 914b727

Browse files
committed
Add correct parser call the clp-s.cpp
1 parent e4cb2fa commit 914b727

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

components/core/src/clp_s/clp-s.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,10 @@ bool compress(CommandLineArguments const& command_line_arguments) {
115115

116116
clp_s::JsonParser parser(option);
117117
if (CommandLineArguments::FileType::KeyValueIr == option.input_file_type) {
118-
// Functionality Coming in later PR
119-
// -->Call new parsing function in Json Parser to parse IRv2 to archive
120-
// -->Check for error from parsing function
121-
SPDLOG_ERROR("Compressing Key Value IR Files is not yet supported");
122-
return false;
118+
if (false == parser.parse_from_ir()) {
119+
SPDLOG_ERROR("Encountered error while parsing input");
120+
return false;
121+
}
123122
} else {
124123
if (false == parser.parse()) {
125124
SPDLOG_ERROR("Encountered error while parsing input");

0 commit comments

Comments
 (0)