|
DTNMA Reference Tools v2.2.0 - 14.ge930b04
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
This tool converts ARIs between different encoding forms. It uses command-line options to control the ARI conversion.
The options related to input or output forms allow the following values:
For "uri" or "cborhex" forms of input, each line is handled as a separate ARI and converted independently until the input stream is ended. For "cbor" form of input, the stream is treated as a CBOR sequence [8] and each CBOR data item is converted independently until the input stream is ended.
For all options of this command, if any option is supplied multiple times the last use supersedes all others.
--log-level
Possible choices: debug, info, warning, error, crit
The minimum log severity.
Default: info
--inform
Possible choices: auto, uri, cbor, cborhex
The input encoding.
The choice of 'auto' uses the initial bytes of the first input to detect the scheme "ari:" to indicate if the input is 'uri'. Otherwise, it is assumed to be 'cborhex' and processed accordingly.
Default: auto
--source
The input file name to read or "-" for stdin stream.
Default: -
--outform
Possible choices: auto, uri, cbor, cborhex
The output encoding.
The choice of 'auto' assumes a 'uri' output if the input is 'cbor' or 'cborhex' and assumes a 'cborhex' output if the input is 'uri'.
--dest
The output file name to write or "-" for stdout stream.
Default: -