diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-04-25 18:51:54 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-04-26 18:48:31 +0200 |
| commit | 8bfe2d62e5244ef70931aee66d13e08e0450155e (patch) | |
| tree | e479534578525b92dbfaa076c6355ea9dd113fb3 /src | |
| parent | 7ce3212fb2b0e4db1d2928d8d9c7b45a5c5a7aef (diff) | |
echo: rename -col option to -color
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands.cc | 6 |
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 } ); } |
