# io.github.libtmux.SessionSpec.SessionSpec.argv

- **Module:** io.github.libtmux.SessionSpec.SessionSpec
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/SessionSpec.java#L132
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-sessionspec-sessionspec-argv/

```
io.github.libtmux.SessionSpec.SessionSpec.argv(format: String, running: Supplier<TmuxVersion>) -> List<String>
```

The command that makes this session, reporting it through {@code format}.

The version arrives as a supplier because this is the one creating call that may run when
there is no server yet, and asking a socket with nothing behind it for its version fails.
Nothing asks unless the spec depends on the answer.

## Parameters

- `format` (String): the row format the caller will read the result back with
- `running` (Supplier<TmuxVersion>): what the server about to run this is, asked only if it matters

## Raises

- `UnsupportedTmuxVersionException`: if the spec asks for something {@code running} does not have
