method
Os.arg_count
Os.arg_count() -> int
The number of command-line arguments, always at least 1 (the program path itself). Pair it with arg for index-based access, or just use args.
Example
program Argc {
entry {
if Os.arg_count() >= 1 { print(1) }
}
}