Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

btpc validate

Validate metainfo structure without reading payload files

Parent: btpc

See Configuration and global flags and Exit codes and streams.

Synopsis

Usage: btpc validate [OPTIONS] <INPUT>

Arguments

ArgumentDescription
<INPUT>Metainfo file to validate

Options

OptionDescription
--jsonEmit versioned JSON to stdout Default: false.
--format, <FORMAT>Select output representation Values: human, json, json-pretty.
--canonicalRequire canonical bencode Default: false.
--warnings-as-errorsReturn the warning exit code when validation warnings exist Default: false.
--prettyUse the expanded human renderer Default: false.
--max-input-bytes, <MAX_INPUT_BYTES>Maximum metainfo bytes accepted while loading
--max-owned-bytes, <MAX_OWNED_BYTES>Maximum estimated owned allocation while loading
--max-integer-digits, <MAX_INTEGER_DIGITS>Maximum decimal digits accepted in one bencode integer
-h, --helpPrint help

Global options

OptionDescription
--config, <PATH>Use this configuration file when configuration loading is enabled
--no-configDisable implicit and environment-selected configuration Default: false.
--color, <COLOR>Control colored terminal output Values: auto, always, never.
-v, --verboseIncrease diagnostic verbosity; may be repeated Default: 0.
-q, --quietSuppress human summaries, warnings, and progress Default: false.

Example

$ btpc validate --help