fix: Improve CLI flag validation for single-word flags

Fix issue with kebab-case validator incorrectly flagging single-word flags like --prompt. Refactor detectCamelCaseFlags to properly handle all single-word flags. Update tests to verify correct behavior with single-word and camelCase flags. Add support for alternative flag formats in init command (e.g., -my_name). This fixes a bug where users couldn't use the --prompt flag directly and had to use -p instead.
This commit is contained in:
Eyal Toledano
2025-03-26 15:54:51 -04:00
parent c75e518380
commit b3fc14a4c2
9 changed files with 188 additions and 27 deletions

6
.cursorignore Normal file
View File

@@ -0,0 +1,6 @@
package-lock.json
# Add directories or file patterns to ignore during indexing (e.g. foo/ or *.csv)
node_modules/