diff --git a/src/commands/CmdColor.cpp b/src/commands/CmdColor.cpp index c99f87baa..f5860dae1 100644 --- a/src/commands/CmdColor.cpp +++ b/src/commands/CmdColor.cpp @@ -54,7 +54,7 @@ int CmdColor::execute (std::string& output) #ifdef FEATURE_COLOR // Get the non-attribute, non-fancy command line arguments. bool legend = false; - std::vector words = context.cli.getWords (); + std::vector words = context.cli2.getWords (); for (auto& word : words) if (closeEnough ("legend", word)) legend = true;