Lem/Docs

citation

Dispatch citation addition and bibliography checking.

Invocation#

Shell
lem-cli citation <add|check> <id-or-title> ...

Inputs and options#

  • The required subcommand is add or check.
  • Both leaves require a paper selector and accept --bib <path> and --document <path>.

Output and state#

The group itself performs no work; it dispatches to citation add or citation check. Each leaf prints its result as JSON and exits nonzero when the result state is failed.

Refusals#

  • No subcommand refuses with “citation needs a subcommand: add or check”.
  • A subcommand without a paper selector refuses with “citation <subcommand> needs a paper id or title”.
  • Any other subcommand refuses with “citation: unknown subcommand <name>; use add or check”.