ArgvObject

@alexeyp0708/argv_patterns. ArgvObject

Class ArgvObject

Constructor

new ArgvObject(params) → {ArgvObject}

Properties:
Name Type Description
commands Array.<ArgvElement>

command list

options Object.<string, ArgvElement>

set of options

Source:
Parameters:
Name Type Description
params string | Array | ArgvArray | undefined
Returns:
Type:
ArgvObject

Methods

(static) elementsToObject(argv) → {ArgvObject}

Source:
Parameters:
Name Type Description
argv ArgvArray
Returns:
Type:
ArgvObject

(static) elementsToObject(argv) → {ArgvObject}

Source:
Parameters:
Name Type Description
argv ArgvArray
Returns:
Type:
ArgvObject

(static) objectToArray(argv) → {ArgvArray}

Source:
Parameters:
Name Type Description
argv ArgvObject
Throws:

Error: Bad argument - Invalid argument.

Returns:
Type:
ArgvArray

(static) objectToArray(argv) → {ArgvArray}

Source:
Parameters:
Name Type Description
argv ArgvObject
Throws:

Error: Bad argument - Invalid argument.

Returns:
Type:
ArgvArray

toArray() → {ArgvArray}

Converts this object to [array ArgvArray]

Source:
Returns:
Type:
ArgvArray

toArray() → {ArgvArray}

Converts this object to [array ArgvArray]

Source:
Returns:
Type:
ArgvArray

toString() → {string}

Converts this object to command line

Source:
Returns:
Type:
string

toString() → {string}

Converts this object to command line

Source:
Returns:
Type:
string

@alexeyp0708/argv_patterns. ArgvObject

Class ArgvObject

Constructor

new ArgvObject(params) → {ArgvObject}

Properties:
Name Type Description
commands Array.<ArgvElement>

command list

options Object.<string, ArgvElement>

set of options

Source:
Parameters:
Name Type Description
params string | Array | ArgvArray | undefined
Returns:
Type:
ArgvObject

Methods

(static) elementsToObject(argv) → {ArgvObject}

Source:
Parameters:
Name Type Description
argv ArgvArray
Returns:
Type:
ArgvObject

(static) elementsToObject(argv) → {ArgvObject}

Source:
Parameters:
Name Type Description
argv ArgvArray
Returns:
Type:
ArgvObject

(static) objectToArray(argv) → {ArgvArray}

Source:
Parameters:
Name Type Description
argv ArgvObject
Throws:

Error: Bad argument - Invalid argument.

Returns:
Type:
ArgvArray

(static) objectToArray(argv) → {ArgvArray}

Source:
Parameters:
Name Type Description
argv ArgvObject
Throws:

Error: Bad argument - Invalid argument.

Returns:
Type:
ArgvArray

toArray() → {ArgvArray}

Converts this object to [array ArgvArray]

Source:
Returns:
Type:
ArgvArray

toArray() → {ArgvArray}

Converts this object to [array ArgvArray]

Source:
Returns:
Type:
ArgvArray

toString() → {string}

Converts this object to command line

Source:
Returns:
Type:
string

toString() → {string}

Converts this object to command line

Source:
Returns:
Type:
string