# doca-argp

Trigger on implicit phrasings: "add a custom flag to a DOCA sample", "should I use getopt here", "BAD_STATE registering a new param", "my JSON config key is rejected".

- Type: Skill
- Updated: 22 Nov 2026
- Category: Networking

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Trigger on implicit phrasings: "add a custom flag to a DOCA sample", "should I use getopt here", "BAD_STATE registering a new param", "my JSON config key is rejected", or "my sample's --json is ignored". Refuse and route elsewhere for variadic-flag / subcommand / shell-completion features, DOCA Core context, or DOCA Log internals.

## How to set it up

Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring → register params → → in order; picking a parameter type from the full public enum (,,,,, — six values, not three); preserving the built-in DOCA flags ( /, NOT ); is per-program; or debugging / / / from.

```
doca_argp_init
```

```
doca_argp_start
```

```
doca_argp_destroy
```

```
DOCA_ARGP_TYPE_STRING
```

```
_INT
```

```
_BOOLEAN
```

```
_DEVICE
```

```
_DEVICE_REP
```

```
_DOUBLE
```

```
-h
```

```
-v
```

```
-l
```

```
--sdk-log-level
```

```
--log-filter
```

```
-j
```

```
--json
```

```
--json-config
```

```
--device
```

```
DOCA_ERROR_BAD_STATE
```

```
INVALID_VALUE
```

```
NOT_SUPPORTED
```

```
IO_FAILED
```

```
doca_argp_*
```

## More in Networking

- [doca-bare-metal-deployment](https://www.ulpi.io/en/marketplace/skills/doca-bare-metal-deployment): Running a DOCA-linked binary directly on the hardware, with no container or kubelet: on host x86 with a BlueField NIC over PCIe, or bare-metal on BlueField Arm.
- [doca-bench](https://www.ulpi.io/en/marketplace/skills/doca-bench): Use it to discover enabled benchmark libraries, capture a reproducible command/version/device/environment baseline, compare stable runs against a declared tolerance.
- [doca-bf3-deployment](https://www.ulpi.io/en/marketplace/skills/doca-bf3-deployment): Use this skill for BlueField-3 (BF3) day-1 platform bring-up via the classic RShim/BFB path: pushing a BlueField bundle.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
