CommandLine

The parser for options, arguments, and parameters passed on the command line.

This class parses an array of strings (as might appear as arguments on the command line). The resulting object has properties for all the options provided. If an option is not provided, and it is not required, the value of the corresponding property will be null.

Types

Link copied to clipboard
object Companion

Provides a static method to create a CommandLine from a list of arguments. You cannot instantiate a CommandLine directly.

Properties

Link copied to clipboard
val args: Array<out String>

The array of command line arguments to parse.

Link copied to clipboard

Evaluate assertions?

Link copied to clipboard

The command.

Link copied to clipboard
val config: File?

The configuration file specified.

Link copied to clipboard

Enable debugging output?

Link copied to clipboard

Enable the debugger?

Link copied to clipboard

Did any parse errors occur?

Link copied to clipboard

Shall we try to explain errors?

Link copied to clipboard

Display command line help instructions?

Link copied to clipboard

Function initializers (--init initializers for Saxon)

Link copied to clipboard

The pipeline inputs.

Link copied to clipboard

Enable licensed features?

Link copied to clipboard
val namespaces: Map<String, NamespaceUri>

In-scope namespace declarations for argument parsing.

Link copied to clipboard

Compile and possibly graph the pipeline but don't actually run it.

Link copied to clipboard

The pipeline options.

Link copied to clipboard

The pipeline outputs.

Link copied to clipboard

Enable Unix-style pipeline processing of stdin and stdout?

Link copied to clipboard

The pipeline or library document containing the pipeline to run.

Link copied to clipboard

The pipeline graph output directory.

Link copied to clipboard
val step: String?

The step (in a library) to run.

Link copied to clipboard
val trace: File?

Did the user specify a trace output file?

Link copied to clipboard

Did the user specify a trace documents directory?

Link copied to clipboard

Try namespace URIs for schemas?

Link copied to clipboard

Use location hints for schemas?

Link copied to clipboard
val validationMode: ValidationMode

The validation mode.

Link copied to clipboard

How chatty shall we be?

Link copied to clipboard

Did we select a visualizer?

Link copied to clipboard

Did it have options?

Link copied to clipboard

Catalog files specified on the command line.

Link copied to clipboard

XML Schema documents.