# params var (world)

Source: https://ref.dm-lang.org/world/var/params

### Default value
> null

This is a list of parameters passed to the world from the command-line -params option when the server was started. The parameter text is passed through params2list() to generate the world.params list.

```dm
world/New()
   var/p
   if(params.len) world.log << "Command-line parameters:"
   for(p in params)
      world.log << "[p] = [params[p]]"
```

This example displays the value of each parameter.

### See also
- [list associations](https://ref.dm-lang.org/list/associations.md)
- [params2list proc](https://ref.dm-lang.org/proc/params2list.md)
- [startup proc](https://ref.dm-lang.org/proc/startup.md)
