cmdliner-tool-commands(1)

cmdliner-tool-commands1

Output all subcommands of a cmdliner tool

Usage

cmdliner tool-commands [OPTION] … TOOLEXEC

Overview

cmdliner tool-commands outputs all the subcommands of a given cmdliner based tool, one per line. Examples:

cmdliner tool-commands ./mytool
cmdliner tool-commands cmdliner

Arguments

TOOLEXEC (required)

TOOLEXEC is the tool executable. Searched in the PATH unless an explicit file path is specified.

Options

--help[=FMT] (default=auto)

Show this help in format FMT. The value FMT must be one of auto, pager, groff or plain. With auto, the format is pager or plain whenever the TERM env var is dumb or undefined.

--version

Show version information.

Exit status

cmdliner tool-commands exits with:

0

on success.

123

on indiscriminate errors reported on standard error.

124

on command line parsing errors.

125

on unexpected internal errors (bugs).

From ocaml-cmdliner 2.1.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.