.\" # .\" # Copyright (c) 2014, Juniper Networks, Inc. .\" # All rights reserved. .\" # This SOFTWARE is licensed under the LICENSE provided in the .\" # ../Copyright file. By downloading, installing, copying, or .\" # using the SOFTWARE, you agree to be bound by the terms of that .\" # LICENSE. .\" # Phil Shafer, July 2014 .\" .Dd December 4, 2014 .Dt XO 1 .Os .Sh NAME .Nm xo .Nd emit formatted output based on format string and arguments .Sh SYNOPSIS .Nm .Op Fl options .Op Ar argument... .Sh DESCRIPTION The .Nm utility allows command line access to the functionality of the .Nm libxo library. Using .Nm , shell scripts can emit .Em XML , .Em JSON , or .Em HTML using the same commands that emit text output. .Pp .Bl -tag -width "12345678901234567" .It Fl "-close " Close tags for the given path .It Fl "-depth " Set the depth for pretty printing .It Fl "-help" Display this help text .It Fl "-html OR -H" Generate HTML output .It Fl "-json OR -J" Generate JSON output .It Fl "-leading-xpath " Add a prefix to generated XPaths (HTML) .It Fl "-open " Open tags for the given path .It Fl "-pretty OR -p" Make 'pretty' output (add indent, newlines) .It Fl "-style