diff --git a/src/commands/CmdSync.cpp b/src/commands/CmdSync.cpp index 5a2bcd30c..0bf652bd2 100644 --- a/src/commands/CmdSync.cpp +++ b/src/commands/CmdSync.cpp @@ -56,7 +56,7 @@ int CmdSync::execute (std::string& output) // Loog for the 'init' keyword to indicate one-time pending.data upload. bool first_time_init = false; - std::vector words = context.cli.getWords (); + std::vector words = context.cli2.getWords (); for (auto& word : words) { if (closeEnough ("initialize", word, 4))