summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-04-25 18:51:54 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-04-26 18:48:31 +0200
commit8bfe2d62e5244ef70931aee66d13e08e0450155e (patch)
treee479534578525b92dbfaa076c6355ea9dd113fb3
parent7ce3212fb2b0e4db1d2928d8d9c7b45a5c5a7aef (diff)
echo: rename -col option to -color
-rw-r--r--src/commands.cc6
1 files 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 } );
}