# `Cheer.Reference`
[🔗](https://github.com/joshrotenberg/cheer/blob/v0.2.2/lib/cheer/reference.ex#L1)

Generate a reference document for a command tree, suitable for a docs site or a
repository reference page. Derives everything from `Cheer.tree/1`, so hidden
options, arguments, and subcommands are omitted.

## Usage

    iex> Cheer.Reference.generate(MyApp.CLI, :markdown, prog: "myapp")

Currently supports the `:markdown` format.

# `generate`

```elixir
@spec generate(module(), :markdown, keyword()) :: String.t()
```

Render a reference document for the command tree rooted at `root`.

Options:
  * `:prog` - program name for the top-level heading (default: root command name)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
