Command line options

The OmniMark command-line options that can be used in OmniMark Studio for Eclipse are listed below. You can enter the command line options for your program in a launch configuration.

Many command line options have short forms.

Arguments files

You can combine several command line options into a file called an arguments file. You then name the arguments file on the command line using the -f command line option. The command line options in the arguments file will be read as if they had been entered on the command line. Arguments files are usually given the extension .xar.

Place command line arguments one per line, like this:

-include /opt/OmniMark/xin
-log log.txt



To specify an arguments file that is to be read as part of the command line, use one of the following:

Referents temporary files

To specify the directory where OmniMark should create temporary files when processing referents:

Locating external function libraries

To specify a directory in which OmniMark should look for external function libraries (other than those specified in the global OmniMark options):

You must specify the file extension used for shared libraries on the platform OmniMark is running on. On UNIX, you must add the trailing slash and "=L.so". On Windows, you must add the trailing slash and "=L.dll". If the command line has more than one "-xflpath" option, OmniMark Studio for Eclipse will search those directories in the order you've specified them.

To specify a path to the include files (other than those specified in the global OmniMark options), use one of the following:

To force OmniMark to ignore include paths and external function library paths specified in environment variables and Windows registry entries (which is equivalent to checking the Ignore global properties box in the launch configuration):

Specifying the default output destination

Setting global variables in the OmniMark script

You can set the initial values of global variables in the OmniMark script. Initial values set on the command line override those specified in the program source.

Information and logging

Controlling markup error reporting

Locating SGML entity libraries

If the command line contains more than one "-libpath" option, OmniMark Studio for Eclipse will search those directories in the order they are specified. Note that you must include a trailing directory name separator ("/" on UNIX, "\" on Windows) at the end of the specified path, as the path is prepended to the name of the file when OmniMark Studio for Eclipse searches for it.

Controlling warnings

The OmniMark compiler produces warnings in the following categories:

By default, the OmniMark compiler will display all these classes of warnings except for uninitialized-data-access. You can change how each class of error is handled using the following command line options:

The -warning and -warnings command line options used in previous version of OmniMark no longer have any effect on the compiler.