This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 8/19/2026.

Args

~import std/args

std/args — Command-line argument access

args.k · 4 tors

std/args — Command-line argument access Safe access to the process's command-line arguments. Works on both the Zig and JavaScript targets. (Pure `.k` contract facet.) The public events live here, in the target-agnostic facet. The Zig implementation is in `args.kz`; the JavaScript implementation in `args.kjs`. `import std/args` merges all same-stem facets into one module, so these events are in scope (unqualified) for every implementation proc. For flag parsing and CLI frameworks, see std/cli (future). Get all arguments (including the program name at index 0).