aboutsummaryrefslogtreecommitdiff
path: root/bbot
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-06-21 22:08:17 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-06-21 22:08:17 +0300
commit9febd2606f8576c6e7cdb950211ec831da168c3a (patch)
tree8976aa1dfcc95f6ccc0f90f8c459e4184200b706 /bbot
parentd03e5cf44470c6980f4127b3c7bcc2aaf99b151d (diff)
Adapt to added support of <name>=<value> option notation to CLI
Diffstat (limited to 'bbot')
-rw-r--r--bbot/worker/worker.cxx16
1 files changed, 1 insertions, 15 deletions
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 <name>=<value> option notation the splitting
- // become redundant.
- //
auto step_args = [&step_id_str] (const std::multimap<string, string>& 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;