---
title: debug.getOption() function
description: debug.getOption() gets the value of an option using a form of reflection.
url: https://docs.influxdata.com/flux/v0/stdlib/internal/debug/getoption/
estimated_tokens: 296
product: Flux
version: v0
---

# debug.getOption() function

-   Flux 0.68.0+
-   View InfluxDB support

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

##### Function type signature

```js
(name: string, pkg: string) => A
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### pkg

(Required) Full path of the package.

### name

(Required) Option name.
