> For the complete documentation index, see [llms.txt](https://sron.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sron.gitbook.io/docs/cmd_line_args.md).

# Command Line Arguments

### Command-line arguments are values or options that you can pass to a program when you launch it via command line(or terminal). They allow you to control the behavior of the program from outside, rather than hardcoding values directly into the code.

#### Before passing command-line arguments, the main function in your code must take one variable of type 'List'.

```js
{
    name : Main
    args: (List __arglist)
    println("Arguments : ", __arglist)
}
```

#### After succesfull compilation of your source code, you can pass command line arguments like this:

**INPUT**

```
    sron 1 2 3 4 5 Hello SRON
```

**OUTPUT**

> Arguments : \["1", "2", "3", "4", "5", "Hello", "SRON"]

#### Each element in the argument list is a value of type **'LiteralString'**.
