docs-v2/content/flux/v0/stdlib/internal/debug/getoption.md

1.3 KiB

title description menu weight
debug.getOption() function `debug.getOption()` gets the value of an option using a form of reflection.
flux_v0_ref
name parent identifier
debug.getOption internal/debug internal/debug/getOption
201

debug.getOption() gets the value of an option using a form of reflection.

Function type signature
(name: string, pkg: string) => A

{{% caption %}} For more information, see Function type signatures. {{% /caption %}}

Parameters

pkg

({{< req >}}) Full path of the package.

name

({{< req >}}) Option name.