From 8bfe2d62e5244ef70931aee66d13e08e0450155e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 25 Apr 2013 18:51:54 +0200 Subject: [PATCH] echo: rename -col option to -color --- src/commands.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands.cc b/src/commands.cc index 1aa04ea4..7cc57d57 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -440,13 +440,13 @@ void define_command(const CommandParameters& params, Context& context) void echo_message(const CommandParameters& params, Context& context) { - ParametersParser parser(params, { { "col", true } }, + ParametersParser parser(params, { { "color", true } }, ParametersParser::Flags::OptionsOnlyAtStart); String message; for (auto& param : parser) message += param + " "; - ColorPair color = get_color(parser.has_option("col") ? - parser.option_value("col") : "StatusLine"); + ColorPair color = get_color(parser.has_option("color") ? + parser.option_value("color") : "StatusLine"); context.print_status({ std::move(message), color } ); }