intermodal/book/src/commands/imdl-torrent-verify.md
Casey Rodarmor f05807290b
Render command help text in book to avoid wrapping
The command `--help` text output in the book was very wide, which caused
it to be clipped and require scrolling horizontally to see it all.

This diff renders the text at 80 columns, which makes it visible without
scrolling at reasonable screen sizes.

To do this, `env::run` now checks for the presence of the environment
variable `IMDL_TERM_WIDTH`, which, if set to a positive integer, will be
passed to `Clap::set_term_width`.

`bin/man` now uses this to render the help text at 80 characters.

type: documentation
pr: https://github.com/casey/intermodal/pull/364
2020-04-11 04:00:52 -07:00

21 lines
674 B
Markdown

# `imdl torrent verify`
```
imdl-torrent-verify 0.1.4
Verify files against a `.torrent` file.
USAGE:
imdl torrent verify [OPTIONS] --input <METAINFO>
FLAGS:
-h, --help Print help message.
-V, --version Print version number.
OPTIONS:
-c, --content <PATH> Verify torrent content at `PATH` against torrent
metainfo. Defaults to `name` field of torrent info
dictionary.
-i, --input <METAINFO> Verify torrent contents against torrent metainfo
in `METAINFO`. If `METAINFO` is `-`, read metainfo
from standard input.
```