diff -r 1bb084f84eb9 -r e04e5bbc147b src/CLIParser.h --- a/src/CLIParser.h Wed Dec 09 17:55:03 2020 +0100 +++ b/src/CLIParser.h Wed Dec 09 23:53:30 2020 +0100 @@ -57,7 +57,7 @@ if (style == L"auto") return Style::Automatic; else if (style == L"dropped") return Style::Dropped; else if (style == L"literal") return Style::Literal; - else if (style == L"literal-with-section-attribute") return Style::LiteralWithSectionAttribute; // TODO: better names + else if (style == L"section-first") return Style::SectionFirst; else if (style == L"standard") return Style::Standard; else throw relpipe::cli::RelpipeCLIException(L"Unsupported style option: " + style, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); } @@ -80,6 +80,7 @@ currentRelation.relation = readNext(arguments, i); } else if (option == OPTION_STYLE) { currentRelation.style = parseStyle(readNext(arguments, i)); + if (currentRelation.relation.empty()) currentRelation.relation = L".*"; } else if (option == OPTION_WRITER_OPTION) { c.writerOptions.push_back({readNext(arguments, i), readNext(arguments, i)}); } else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);