Fix: declare --experimental-project as a Commander option instead of allowUnknownOption
allowUnknownOption() silently swallows all unrecognised flags, which broke the
existing CLI test 'should warn when unknown argument provided' (it passes --random
and expects Commander's 'error: unknown option' output on stderr).
The correct fix is to declare --experimental-project as a hidden option so
Commander accepts it without rejecting it as unknown. getProjectGroups() still
does its own raw argv parsing to handle repetition, per-project --port/--turbopack/
--webpack flags, etc.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment