ArgumentParser
Vocality Documentation › Globals › ArgumentParser
Hierarchy
- ArgumentParser
Index
Methods
Methods
Static
parseInput
▸ parseInput(msg
: string): string[]
Defined in packages/vocality-core/src/utils/ArgumentParser.ts:10
Checks if the input is empty and returns array of arguments
Parameters:
Name | Type |
---|---|
msg | string |
Returns: string[]
Static
validateArguments
▸ validateArguments(command
: Command, args
: string[]): void
Defined in packages/vocality-core/src/utils/ArgumentParser.ts:18
Parameters:
Name | Type |
---|---|
command | Command |
args | string[] |
Returns: void