1.3.1 Input format details
The command input format is as follows:
command-name [options...]
Each item is explained below. In the examples, $ represents the command prompt, and cmd represents the command name.
- Organization of this subsection
(1) Command name
Specify the file name of the command to be executed.
If you execute a command by specifying a path that contains a space character, you must enclose the entire path in double quotation marks (").
- In Windows
-
-
Example of an invalid specification: $ C:\Program Files\Hitachi\Cosminexus\CC\server\bin\cmd
-
Example of a valid specification: $ "C:\Program Files\Hitachi\Cosminexus\CC\server\bin\cmd"
-
- In UNIX
-
-
Example of an invalid specification: $ /opt/program path/bin/command
-
Example of a valid specification: $ "/opt/program path/bin/command"
-
(2) Arguments
The arguments consist of options. The input format and specification rules for options are shown below.
(a) Option input format
An option is a character string that begins with a hyphen (-). The input formats for options include a format in which no option argument is specified and a format in which one option argument is specified.
- Format when no option arguments are specified
-
$ cmd -option-flag
- Format for specifying option arguments
-
$ cmd -option-flag<space or tab>option-arguments
- Legend:
-
-
option-flag
Single-byte alphanumeric characters. Alphabetic characters are case sensitive.
-
option-arguments
Arguments for the option flag.
-
(b) Option specification rules
-
You cannot use a single hyphen to specify multiple option flags.
Example of an invalid specification: $ cmd -abc
Example of a valid specification: $ cmd -a -b -c
-
If an option flag requires an option argument, you cannot omit the option argument.
-
You must specify a space or tab character between the option flag and the option arguments.
Example of an invalid specification: $ cmd -afile
Example of a valid specification: $ cmd -a file
-
You cannot specify the same option flag more than once.
Example of an invalid specification: $ cmd -a 1 -a 2
-
If an option argument includes a space character, you must enclose the entire option arguments in double quotation marks (").
Example of an invalid specification: $ cmd -a file 1
Example of a valid specification: $ cmd -a "file 1"