Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: adding some options

...

LongShortArgumentsDescription
--debug
-d
[file]

Enable the interactive debugger. See the Interactive Debugger documentation for more information.

The optional file argument is a list of debugger commands that are provided to the debugger as if it was type by the user.

This option cannot be used with the --trace option.

--trace-t 

Enable a trace mode. This mode prints out helpful information during every stage of parsing.

This option cannot be used with the --debug option.

--versionverbose
-v
 

Enable verbose outputmode and increment verbosity level. Each additional v provides a new level of information.

--version
  Display the version of Daffodil.
--help
  Display help message.

Parse Subcommand

Parse a file, using either a DFDL schema or a saved parser.

...

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.
--validation-validationModemode
-V
<validationMode>
The validation mode. 'on', 'limited' or 'off'
  
[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.

--version
  Display the version of Daffodil.
--help
  Display help message.

Example

daffodil parse -s csv.dfdl.xsd test_file.csv

...

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 unparsing.
--output
-o
<output>
Write output to a give file. If the option is not given or is -, output is written to standard out.
--validation-validationModemode
-V
<validationMode>
The validation mode. 'on', 'limited' or 'off'
  
[infile]
Input file to unparse. If not specified, or is a value of -, reads from standard in. In supplied, this must be the last option on the command line.
--version
  Display the version of Daffodil.
--help
  Display help message.

Example

daffodil unparse -s csv.dfdl.xsd test_file.infoset

...

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 must be supplied.
--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.
--validation-mode
-V
<validationMode>
The validation mode. 'on', 'limited' or 'off'
 
 
[outfile]
Write the parser to a give file. If the option is not given or is -, output is written to standard out.
--version
  Display the version of Daffodil.
--help
  Display help message.

Example

daffodil save-parser -s csv.dfdl.xsd csv_parser.xml

...

daffodil test [-l] [-r] <tdmlfile> [testname...]

Options

 

LongShortArgumentsDescription
--list
-l
 
Show names and descriptions in a TDML file instead of running them.
--regex
-r
 
Read <testnames> as regular expressions.
 
 
<tdmlfile>
Test Data Markup Language (TDML) file.
 
 
[testname...]
Name of one or more test case in the tdml file. If not given, all tests in <tdmlfile> are run.
--version
  Display the version of Daffodil.
--help
  Display help message.

Example

daffodil test csv.tdml

...