command_line_arguments
Code
main.odin ¶10 linesSource
1package main
2
3import "core:fmt"
4import "core:os"
5
6main :: proc() {
7 // os.args is a []string
8 fmt.println(os.args[0]) // executable name
9 fmt.println(os.args[1:]) // the rest of the arguments
10}