---
url: /api/cli-core/types/utils/function-parse-option.md
description: api documentation of parseOption from @tsed/cli-core
---

## Usage

```typescript
import { parseOption } from "@tsed/cli-core";
```

> See [/packages/cli-core/src/utils/parseOption.ts](https://github.com/tsedio/tsed-cli/blob/v7.8.1/packages/cli-core/src/utils/parseOption.ts#L0-L0).

## Overview

```ts
function parseOption(value: any, options: {
    type?: Type<any>;
    itemType?: Type<any>;
    customParser?: any;
}): any;
```

## type

```ts
type?: Type<any>;
```

## itemType

```ts
itemType?: Type<any>;
```

## customParser

```ts
customParser?: any;
```
