Lines Matching +full:no +full:- +full:output

2 .. index:: --libxo
7 Command-line Arguments
12 "`--libxo`" option::
14 --libxo <options>
15 --libxo=<options>
16 --libxo:<brief-options>
18 The *brief-options* is a series of single letter abbrevations, where
19 the *options* is a comma-separated list of words. Both provide access
23 my-app --libxo warn,pretty arg1
24 my-app --libxo=warn,pretty arg1
25 my-app --libxo:WP arg1
31 ---------------
33 Options is a comma-separated list of tokens that correspond to output
40 colors=xxxx Adjust color output values
43 flush-line Flush after every line (line-buffered)
44 html Emit HTML output
47 json Emit JSON output
49 log-gettext Log (via stderr) each gettext(3) string lookup
50 log-syslog Log (via stderr) each syslog message (via xo_syslog)
51 no-humanize Ignore the {h:} modifier (TEXT, HTML)
52 no-locale Do not initialize the locale setting
53 no-retain Prevent retaining formatting information
54 no-top Do not emit a top set of braces (JSON)
55 not-first Pretend the 1st output item was not 1st (JSON)
56 pretty Emit pretty-printed output
58 text Emit TEXT output
59 underscores Replace XML-friendly "-"s with JSON friendly "_"s
60 units Add the 'units' (XML) or 'data-units (HTML) attribute
62 warn-xml Emit warnings in XML
63 xml Emit XML output
70 - "colors" is described in :ref:`color-mapping`.
71 - "flush-line" performs line buffering, even when the output is not
73 - "info" generates additional data for HTML, encoded in attributes
74 using names that state with "data-".
75 - "keys" adds a "key" attribute for XML output to indicate that a leaf
77 - "no-humanize" avoids "humanizing" numeric output (see
78 :ref:`humanize-modifier` for details).
79 - "no-locale" instructs libxo to avoid translating output to the
81 - "no-retain" disables the ability of libxo to internally retain
84 - "underscores" can be used with JSON output to change XML-friendly
85 names with dashes into JSON-friendly name with underscores.
86 - "warn" allows libxo to emit warnings on stderr when application code
88 - "warn-xml" causes those warnings to be placed in XML inside the
89 output.
92 -------------
94 The brief options are simple single-letter aliases to the normal
101 F Force line-buffered flushing
102 H Enable HTML output (XO_STYLE_HTML)
103 I Enable info output (XOF_INFO)
105 J Enable JSON output (XO_STYLE_JSON)
108 P Enable pretty-printed output (XOF_PRETTY)
109 T Enable text output (XO_STYLE_TEXT)
110 U Add units to HTML output
111 u Change "-"s to "_"s in element names (JSON)
113 X Enable XML output (XO_STYLE_XML)
119 .. _color-mapping:
122 -------------
125 pre-defined set of colors to new foreground and background colors.
131 - black
132 - red
133 - green
134 - yellow
135 - blue
136 - magenta
137 - cyan
138 - white
145 xo_emit("{C:fg-red,bg-green}Merry XMas!!{C:}\n");
147 To turn all colored output to red-on-blue, use eight pairs of
150 --libxo colors=red/blue+red/blue+red/blue+red/blue+\
153 To turn the red-on-green text to magenta-on-cyan, give a "magenta"
157 --libxo colors=+magenta+/cyan
159 Consider the common situation where blue output looks unreadable on a
161 foreground and background output to "yellow", give only the fifth
164 --libxo colors=++++yellow/yellow
167 --------
169 In addition to the four "built-in" formats, libxo supports an
173 --libxo encoder=cbor
175 The encoder can include encoder-specific options, separated by either
178 --libxo encoder=csv+path=filesystem+leaf=name+no-header
179 --libxo encoder=csv:path=filesystem:leaf=name:no-header
184 df --libxo @csv:no-header