Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Command Line Interface

Usage

daffodil [GLOBAL_OPTIONS] <subcommand> [SUBCOMMAND_OPTIONS]

Global Options

LongShortDescription
--debug
-d

Enable the interactive debugger

--version
-v

Enable verbose output

Parse Subcommand

Usage

daffodil parse (-s <schema> [-r <root> [-n <namespace>]] [-p <path>] | -P <parser>) [-D<variable>=<value>...] [-o <output>] [<infile>]

Options

LongShortArgumentsDescription
--schema
-s
<schema>
The annotated DFDL schema to use to create the parser. This option may be supplied multiple times for multi-schema support. This option cannot be used with the --parser option.
--root
-r
<root>
The root element of the DFDL schema to use. This must be one of the top-level elements of the schema defined with --schema. This requires the --schema option to be defined. If not supplied, the first element of the first schema defined with --schema is used.
--namespace
-n
<namespace>
The namespace of the root element.Requires the --root option.
--path
-p
<path>
The path to the node from the root element to create the parser from.
--parser
-P
<parser>
Use a previously saved parser, created using the save-parser subcommand. This option cannot be used with the --schema option.
 
-D
<variable>=<value>
Variables to be used when parsing.
--output
-o
<output>
Write output to a give file. If the option is not given or is -, output is written to standard out.
  
<infile>
Input file to parse. If not specified, or is a value of -, reads from standard in. In supplied, this must be the last option on the command line.