# `cli.watch_arguments`

A `jadpo watch` command names a kind of code it can't watch, or a route, action, query, subscriber, schedule, provider operation, domain or file the project doesn't have.

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

## Why Jadpo refuses it

`jadpo watch` waits for one part of the code to run in `jadpo dev`, named
as the compiler knows it. A name the project doesn't have would never
run, so the watch would wait until its timeout and say only that nothing
ran. It is refused at once instead, with the nearest name it has.

## What it looks like

The kind is misspelt:


```sh
jadpo watch acton planning.add_todo
```

```text
error: `jadpo watch` can't watch `acton`
  reason: It watches `route`, `action`, `query`, `subscriber`, `schedule`, `call`, `domain` or `file`.
  next: Use `action`: `jadpo watch action planning.add_todo` (agent)
  rule: cli.watch_arguments
  help: https://jadpo.dev/docs/errors/cli.watch_arguments
```

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

## How to fix it

**If the kind or the name was mistyped**, use the one the error names.
An action, query, subscriber or schedule is named `<domain>.<name>`, a
route by its method and path as declared, a provider operation as the
code calls it, `<connection>.<resource>.<operation>`, and a file by its
path in the project:

```sh
jadpo watch action planning.add_todo --once
```

It now waits for `jadpo dev` to run `add_todo`, and shows that run.

## Related

- [Watching code run: `jadpo watch`](/docs/watching-code-run-jadpo-watch.md)
- [Commands for debugging, editors and help](/docs/commands-for-debugging-editors-and-help.md)
