Lines Matching refs:name
23 void OptionsParser<Options>::AddOption(const char* name,
28 options_.emplace(name,
37 void OptionsParser<Options>::AddOption(const char* name,
42 name,
50 void OptionsParser<Options>::AddOption(const char* name,
55 name,
63 void OptionsParser<Options>::AddOption(const char* name,
68 name,
77 const char* name,
81 options_.emplace(name, OptionInfo {
90 void OptionsParser<Options>::AddOption(const char* name,
95 name,
103 void OptionsParser<Options>::AddOption(const char* name,
107 options_.emplace(name, OptionInfo{kNoOp, nullptr, env_setting, help_text});
111 void OptionsParser<Options>::AddOption(const char* name,
115 options_.emplace(name,
202 original.name,
241 // the "0th" argument (the program name), then `synthetic_args` are inserted,
253 // -1 to account for the program name.
291 // The first entry is the process name. Make sure it ends up in the V8 argv,
315 std::string name =
318 // Store the 'original name' of the argument. This name differs from
319 // 'name' in that it contains a possible '=' sign and is not affected
321 std::string original_name = name;
330 for (std::string::size_type i = 2; i < name.size(); ++i) {
331 if (name[i] == '_')
332 name[i] = '-';
337 if (name.find("--no-") == 0) {
338 name.erase(2, 3); // remove no-
345 // - If `name` can be found in `aliases_`.
346 // - If `name` + '=' can be found in `aliases_`.
347 // - If `name` + " <arg>" can be found in `aliases_`, and we have
349 while ((it = aliases_.find(name)) != aliases_.end() ||
351 (it = aliases_.find(name + '=')) != aliases_.end()) ||
355 (it = aliases_.find(name + " <arg>")) != aliases_.end())) {
356 const std::string prev_name = std::move(name);
359 // Use the first entry in the expansion as the new 'name'.
360 name = expansion.front();
370 if (name == prev_name) break;
374 auto it = options_.find(name);
384 std::string implied_name = name;
392 v8_args->push_back(imp->second.name);