# `cli.incident_arguments`

A `jadpo incident` command is given more than one file, one it can't read, or nothing where there is no terminal to give text at.

Area 14, [Tools](/docs/tooling.md); not declinable; the next step is usually the agent's.

## Why Jadpo refuses it

`jadpo incident` explains the events in one log text: a file, standard input (`-`), or, with no argument in a terminal, text given at its prompt. Two files could hold two builds' events, and with no terminal there is no prompt to give text at, so it names what it takes rather than guess which text was meant.

## What it looks like

A project:


Two log files are named:

```sh
jadpo incident web-1.log web-2.log
```

```text
error: `jadpo incident` takes one argument
  reason: It was given `web-1.log web-2.log`.
  next: Run `jadpo incident web-1.log` (agent)
  rule: cli.incident_arguments
  help: https://jadpo.dev/docs/errors/cli.incident_arguments
```

`(agent)` at the end of the `next:` line means your coding agent can make the fix itself.

## How to fix it

**If the events are in two files**, put the lines in one, or pipe them together:

```sh
cat web-1.log web-2.log | jadpo incident -
```

Events from either file are found and grouped by request.

**If no terminal is attached**, as in a script or an agent's shell, give the text as a file or on standard input:

```sh
jadpo incident event.json
```

The events in the file are explained as they would be from the prompt.

## Related

- [Production incidents after the code has changed](/docs/production-incidents-after-the-code-has-changed.md)
- [Commands for debugging, editors and help](/docs/commands-for-debugging-editors-and-help.md)
