beautypg.com

Command usage, Nas command switches – Echelon Neuron User Manual

Page 14

background image

where –switches define any optional command-line switches (see NAS

Command Switches) and file.ns specifies the source input file to assemble.

The command-line tools are installed in the LonWorks\bin directory.
For example, the following command runs the Neuron Assembler, assembles the

abc.ns source file, and generates an abc.no object file in the same directory:

NAS abc.ns

Command Usage

The following command usage notes apply to running the nas command:

If no command switches or arguments follow the command name, the tool

responds with usage hints and a list of available command switches.

Most command switches come in two forms: A short form and a long

form.

The short form consists of a single, case-sensitive, character that

identifies the command, and must be prefixed with a single forward slash

'/' or a single dash '-'. Short command switches can be separated from

their respective values with a single space or an equal sign. Short

command switches do not require a separator; the value can follow the

command identifier immediately.

The long form consists of the verbose, case-sensitive, name of the

command, and must be prefixed with a double dash '- -'. Long command

switches require a separator, which can consist of a single space or an

equal sign.

Examples:

Short form: nas –l …

Long form: nas --listing …

Multiple command switches can be separated by a single space.

Commands of a Boolean type need not be followed by a value. In this

case, the value yes is assumed. Possible values for Boolean commands

are yes, on, 1, +, no, off, 0, - (a minus sign or dash).

Examples:

nas --listing=yes abc.ns

nas --listing abc.ns

Command switches can appear at any location within the command line

or in any order (on separate lines) within a script.

NAS Command Switches

Table 1 lists the available command switches for the nas command. All

switches are optional.

4

Introduction