From 9febd2606f8576c6e7cdb950211ec831da168c3a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 21 Jun 2018 22:08:17 +0300 Subject: Adapt to added support of = option notation to CLI --- bbot/worker/worker.cxx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'bbot') diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index b9eeeb2..b32dbed 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -398,9 +398,6 @@ build (size_t argc, const char* argv[]) // Return command arguments for the specified step id. Arguments with more // specific prefixes come last. // - // @@ When CLI will support = option notation the splitting - // become redundant. - // auto step_args = [&step_id_str] (const std::multimap& args, step_id step) -> strings { @@ -415,18 +412,7 @@ build (size_t argc, const char* argv[]) args.equal_range (n == string::npos ? s : string (s, 0, n))); for (auto i (range.first); i != range.second; ++i) - { - const string& a (i->second); - - size_t p; - if (a[0] == '-' && (p = a.find ('=')) != string::npos) - { - r.emplace_back (a, 0, p); - r.emplace_back (a, p + 1); - } - else - r.emplace_back (a); - } + r.emplace_back (i->second); if (n == string::npos) break; -- cgit v1.1