Home > @rushstack/ts-command-line > CommandLineParser > getAction
CommandLineParser.getAction() method
Retrieves the action with the specified name. If no matching action is found, an exception is thrown.
Signature:
getAction(actionName: string): CommandLineAction;
Parameters
Parameter | Type | Description |
---|---|---|
actionName | string |
Returns: