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

Read/Writer flags

Some parsers accept options that aren’t available in others, for this we use read/writer flags.

Format

--read-flag foo=bar
--write-flag foo=bar

Flags by parser

CSV

Read/WriteNameValuesDescription
read/writecsv-delimiterAny single character to use as a delimiter. E.g. ,, ;Changes the delimiter used when reading/writing CSV files.

XML

Read/WriteNameValuesDescription
readxml-modestructuredChanges the internal structure that XML documents are read into.

HCL

Read/WriteNameValuesDescription
readhcl-block-formatarrayHCL block contents usually expand to an array when duplicate labels are defined on another block. Setting this to array will force blocks to always be an array of values, even when there are no duplicates.