我要评分
获取效率
正确性
完整性
易理解

variable

Command Function

Modifies, obtains, and displays variables.

Syntax

Modifying a variable:

1
variable set [-h | --help] {-n VARIABLE_NAME | --name VARIABLE_NAME} {-v VARIABLE_VALUE | --value VARIABLE_VALUE} [-r RANK_ID | --rank RANK_ID]

Obtaining the variable value:

1
variable get [-h | --help] {-n VARIABLE_NAME | --name VARIABLE_NAME} [-r RANK_ID | --rank RANK_ID]

Displaying all variables:

1
variable list [-h | --help] [-r RANK_ID | --rank RANK_ID]

The variable command can be abbreviated as v or var.

Parameter Description

Table 1 set command parameters

Parameter

Parameter Description

-h/--help

Obtains help information. This parameter is optional.

-n/--name

Variable name. This parameter is mandatory.

-v/--value

Variable value. This parameter is mandatory.

-r/--rank

Rank ID. This parameter is optional.

Table 2 get command parameters

Parameter

Description

-h/--help

Obtains help information. This parameter is optional.

-n/--name

Variable name. This parameter is mandatory.

-r/--rank

Rank ID. This parameter is optional.

Table 3 list command parameters

Parameter

Description

-h/--help

Obtains help information. This parameter is optional.

-r/--rank

Rank ID. This parameter is optional.

Example

Display the information about variable functions:

1
variable -h

Command output:

1
2
3
4
5
The most commonly used variable(v/var) sub commands are:
    list        Displays all variables of the specified rank. (The nested content of complex variables is not displayed.)
    set         Sets a variable value of the specified rank.
    get         Obtains the variable value of the specified rank.
See 'variable(v/var) COMMAND -h/--help' for more information on a specific command.