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}
Converting [array ArgvArray] to [object ArgvObject]
- Source:
Parameters:
Name | Type | Description |
---|---|---|
argv |
ArgvArray
|
Returns:
- Type:
-
ArgvObject
(static) elementsToObject(argv) → {ArgvObject}
Converting [array ArgvArray] to [object ArgvObject]
- Source:
Parameters:
Name | Type | Description |
---|---|---|
argv |
ArgvArray
|
Returns:
- Type:
-
ArgvObject
(static) objectToArray(argv) → {ArgvArray}
Converting [object ArgvObject] to [array ArgvArray]
- Source:
Parameters:
Name | Type | Description |
---|---|---|
argv |
ArgvObject
|
Throws:
Error: Bad argument - Invalid argument.
Returns:
- Type:
-
ArgvArray
(static) objectToArray(argv) → {ArgvArray}
Converting [object ArgvObject] to [array ArgvArray]
- Source:
Parameters:
Name | Type | Description |
---|---|---|
argv |
ArgvObject
|
Throws:
Error: Bad argument - Invalid argument.
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