Args module

report

procedure · 1 overloadSource

Prints a parse error the way the compilers print theirs:

error: unknown option `--chek`
help: did you mean `--check`?
usage: jaifmt [OPTIONS] [PATHS]...
For more information, run `jaifmt --help`.
report :: (error: Error)

Prints a parse error the way the compilers print theirs:

Parameters

error: Error
the error from try_parse. .NONE prints nothing.
error: unknown option `--chek`
help: did you mean `--check`?
usage: jaifmt [OPTIONS] [PATHS]...
For more information, run `jaifmt --help`.

See also