This PR fixes an issue where parts of the flag descriptions in the help output were being colored green unintentionally. Specifically, hyphenated words within descriptions (e.g., task-name, task-aspect-id) were partially colored as if they were command-line options.
The following has been done to fix it:
Modified the regular expression to only match standalone options at the beginning of each line.
Ensured that hyphens within words in the descriptions are not matched and colored.
The updated regex checks that the option is either at the start of the string or preceded by a non-alphanumeric character, preventing matches within words.
This PR fixes an issue where parts of the flag descriptions in the help output were being colored green unintentionally. Specifically, hyphenated words within descriptions (e.g., task-name, task-aspect-id) were partially colored as if they were command-line options.
The following has been done to fix it: