The Argument-Regex
option determines if a part of a command is a prompt.
You can configure the Argument-Regex
by editing the "config.yml" file as follows:
In this example, the argument regex is set to <.*?>
. Therefore a command with prompts will look like the following:
The Argument-Regex
allows you to define a pattern that identifies prompts within a command. By customizing this regex, you can specify how CommandPrompter recognizes and handles command arguments as prompts.
To allow for reserved regex tokens like () and [], CommandPrompter escapes the first and last character of this configuration.
To modify the argument regex pattern, use the following configuration:
This will set the argument regex to (.*?)
for identifying command prompts.