OxL Reference

fn args

Command line: args()[0] is the program name, user arguments follow.

Example:

oxl✓ checked in CI
use std.os { args }

fn main() io {
  print("{args().len() >= 1}")
}
Output
true
@intrinsic("os.args") pub(api) fn args() -> List<str>  io

Since. 1.0.0-beta

Returns

List<str>

Effects

io

Defined in: std/os/os.oxl:29

See also