M Mozhi v3.7.0 code

Error reference › CLI diagnostics

CLI003

missing required argument

error
verifiedverified on v3.7.0 categorycli terminalstable code

What it means

Some commands need an operand; `run` requires the script path.

Trigger condition

A required argument is missing — currently `mozhi run` without a file.

Minimal failing example

$ mozhi run

Verified fix

$ mozhi run app.mz

The usage line is printed together with the diagnostic.

What the interpreter prints

error[CLI003]: missing required argument
  --> app.mz:1:16
 1 | $ mozhi run
   |                 ^
   |
reason: (the exact problem, with positions)
help:   (a suggested fix appears here)
docs:   https://crossberry-in.github.io/mozhi-doc/errors/CLI003
Run mozhi --json run app.mz to get the same information as machine-readable JSON (schema mozhi.diagnostics.v1), or --verbose to also show grouped related diagnostics. See the CLI reference.

Suggested fix

Provide the missing argument as shown in the usage line.

Related syntax

CLI: run

Related diagnostics

CLI001CLI002

Reference links

Limitations

Only `mozhi run` validates this way in v3.2.0; other commands keep their previous argument handling.