---
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: 93
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/internal/debug/getoption/
date: '2024-04-08T16:01:02-06:00'
lastmod: '2024-04-08T16:01:02-06:00'
---

* Flux 0.68.0+

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.
