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
| Argument | Description |
|---|---|
<INPUT> | Metainfo file to validate |
Options
| Option | Description |
|---|---|
--json | Emit versioned JSON to stdout Default: false. |
--format, <FORMAT> | Select output representation Values: human, json, json-pretty. |
--canonical | Require canonical bencode Default: false. |
--warnings-as-errors | Return the warning exit code when validation warnings exist Default: false. |
--pretty | Use 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, --help | Print help |
Global options
| Option | Description |
|---|---|
--config, <PATH> | Use this configuration file when configuration loading is enabled |
--no-config | Disable implicit and environment-selected configuration Default: false. |
--color, <COLOR> | Control colored terminal output Values: auto, always, never. |
-v, --verbose | Increase diagnostic verbosity; may be repeated Default: 0. |
-q, --quiet | Suppress human summaries, warnings, and progress Default: false. |
Example
$ btpc validate --help