---
name: "plsetopt"
section: "3plplot"
platform: "linux"
package: "plplot-doc"
version: "5.15.0+dfsg2-15"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/plsetopt"
---

# plsetopt(3plplot)

Set any command-line option

## NAME

**plsetopt** - Set any command-line option

## SYNOPSIS

PLINT **plsetopt**(*opt*, *optarg*)

## DESCRIPTION

Set any command-line option internally from a program before it invokes [**plinit**(3plplot)](/plinit/3plplot.md). opt is the name of the command-line option and optarg is the corresponding command-line option argument.

This function returns 0 on success.

Redacted form: **plsetopt(opt, optarg)**

This function is used in example 14.

## ARGUMENTS

- *opt* (**PLCHAR\_VECTOR**(3plplot), input)

  An ascii character string containing the command-line option.

- *optarg* (**PLCHAR\_VECTOR**(3plplot), input)

  An ascii character string containing the argument of the command-line option.

## AUTHORS

Many developers (who are credited at http://plplot.org/credits.php) have contributed to PLplot over its long history.

## SEE ALSO

PLplot documentation at http://plplot.org/documentation.php.
