Skip to content

usage generate json

Print a usage spec as JSON

The same document the KDL describes, with included files merged and defaults filled in, for a tool that would rather not parse KDL itself.

Flags

  • -f --file <FILE> — A usage spec file, or a script with a usage shebang; "-" reads stdin
  • --spec <SPEC> — The spec itself, as a string, instead of a file
  • --view <VIEW> — Render one spec-declared executable view
  • -h --help — Print help
MIT LicenseCopyright © 2026jdx.dev