DTNMA Reference Tools v2.0.0 - 21.g58e5557
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.
For text
or cborhex
forms of input or output, each line is handled as a separate ARI and converted independently until the input stream is ended. For cbor
form of input or output, the stream is treated as a CBOR sequence [7] and each CBOR data item is handled as a separate ARI.
--log-level
Possible choices: debug, info, warning, error, crit
The minimum log severity.
Default: info
--inform
Possible choices: auto, text, 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 'text'. 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, text, cbor, cborhex
The output encoding.
The choice of 'auto' assumes a 'text' output if the input is 'cbor' or 'cborhex' and assumes a 'cborhex' output if the input is 'text'.
--dest
The output file name to write or "-" for stdout stream.
Default: -