You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When invoking ftl new --help the CLI incorrectly interprets the double tac flag as a language option and throws an error.
Additionally, the CLI help messages are misleading:
~/C/t/f/alex-samples ❯❯❯ ftl new
Usage: ftl new <language> <dir> <name> [flags]
Run "ftl new --help" for more information.
ftl: error: expected "<language> <dir> <name>"
~/C/t/f/alex-samples ❯❯❯ ftl new --help
ftl: error: could not create plugin for --help: unknown language "--help"
I suspect that the issue is https://github.com/TBD54566975/ftl/blob/1a1b0517ed758ed8fa2c611779ab4936f6c90e0a/frontend/cli/main.go#L85 , with the introduction of a fail early for the language plugins. Perhaps this validation should happen inside https://github.com/TBD54566975/ftl/blob/28ac3300f5d357b2048c018a5afefb24babfe985/frontend/cli/cmd_new.go#L78
The text was updated successfully, but these errors were encountered:
Fixes#3040
If the specified "language" to the new command starts with '-', assume it's an option to the new command.
Shortcircuit the following logic and handle the option.
Co-Authored-By: Matt Toohey <[email protected]>
When invoking
ftl new --help
the CLI incorrectly interprets the double tac flag as a language option and throws an error.Additionally, the CLI help messages are misleading:
~/C/t/f/alex-samples ❯❯❯ ftl new --help
ftl: error: could not create plugin for --help: unknown language "--help"
The text was updated successfully, but these errors were encountered: