# 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/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/SessionSpec.java#L127
- **Page:** https://libtmux.org/reference/java/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}.

<p>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

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