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