Files
archived-tauri-docs/docs/api/js/modules/cli.md
tauri c2d6b60116 Update Docs (#423)
Co-authored-by: tauri-bot <tauri-bot@users.noreply.github.com>
2022-02-11 21:12:16 -03:00

877 B

@tauri-apps/api / cli

Namespace: cli

Parse arguments from your Command Line Interface.

This package is also accessible with window.__TAURI__.cli when tauri.conf.json > build > withGlobalTauri is set to true.

Interfaces

Functions

getMatches

getMatches(): Promise<CliMatches>

Parse the arguments provided to the current process and get the matches using the configuration defined tauri.conf.json > tauri > cli.

Returns

Promise<CliMatches>

A promise resolving to the parsed arguments.

Defined in

cli.ts:42