Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 96448c2

Browse files
src: add missing option parser template for the DebugOptionsParser
This allows embedders to run `node::options_parser::Parse` for a `node::DebugOptions`. This can be removed once nodejs/node#28543 is merged and available in our node fork.
1 parent 2b377c5 commit 96448c2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/node_options.cc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@ class PerProcessOptionsParser : public OptionsParser<PerProcessOptions> {
217217
#if HAVE_INSPECTOR
218218
const DebugOptionsParser _dop_instance{};
219219
const EnvironmentOptionsParser _eop_instance{_dop_instance};
220+
221+
template <>
222+
void Parse(
223+
StringVector* const args, StringVector* const exec_args,
224+
StringVector* const v8_args,
225+
DebugOptions* const options,
226+
OptionEnvvarSettings required_env_settings, StringVector* const errors) {
227+
_dop_instance.Parse(
228+
args, exec_args, v8_args, options, required_env_settings, errors);
229+
}
220230
#else
221231
const EnvironmentOptionsParser _eop_instance{};
222232
#endif // HAVE_INSPECTOR

0 commit comments

Comments
 (0)