Documentation
On this page

Function · Desktop Services

getLaunchArguments

Returns command-line arguments supplied when the desktop application launched.

@sharpts/gui · SharpTS 572a2e31be0e

Signature

TypeScript
getLaunchArguments(): string[]

Returns

string[] — Launch argument strings.

Remarks

The returned array is a snapshot and can be modified without affecting the host process.

Examples

TypeScript
import { getLaunchArguments } from "@sharpts/gui";

for (const argument of getLaunchArguments()) console.log(argument);

Source

src/SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1663 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.