Flags, command attributes, and arguments

The basic InfoPrint command syntax is:

command [-flag…] [argument…]

The argument targets the specific object on which the InfoPrint command operates. Most commands must include an argument. All commands can include one or more of:

Flags
Flags consist of a dash, -, followed by a single character. Flags either substitute for command or object attributes or modify the way InfoPrint processes a command. For example, you can use the -c flag instead of the class command attribute. Some flags have values associated with them.

Use the -x and the -X flags to enter command attributes or object attributes on the command line or to read in a file containing those attributes at a specific point in the command.

Command attributes
Use command attributes to modify the action of the command and to define the object class on which the command operates. Most of the command attributes have an associated command flag that causes the same action. You cannot use a command flag in an attributes file. You can use the command attribute in an attributes file or on the command line using the -X flag or the -x flag respectively.

When you enter an attribute and value pair, you must specify the attribute followed by the equals sign, =, followed by the value; do not include spaces between these three items unless you enclose the items in quotation marks. For example, InfoPrint accepts both the class=destination and "class=destination" formats.

You must begin and end a string of multiple attribute-value pairs with double quotation marks, for example:

pdls -x "class=job requested-attributes=current-job-state" 10

Object attributes
Use object attributes to apply attribute values to the specified argument. You can use the object attribute in an attributes file or on the command line using the -X flag or the -x flag respectively.

When you enter an attribute and value pair, you must specify the attribute followed by the equals sign, =, followed by the value.

You must begin and end a string of multiple attribute-value pairs with double quotation marks, for example:

pdpr -x "document-format=ascii sides=2 plex=simplex" File1

Arguments
The argument specified in a command is the name of the object the command acts on. For servers, the argument is the name of the server. Servers contain all other objects. For some objects, you must specify the name of its server in the form ServerName:ObjectName. For other objects, the server name is optional. You must look at each command to determine the exact format allowed.

If you specify multiple arguments in one command, they must belong to the same object class.