Not a bug CLI --force option still prompts to rebuild/upgrade/etc

Xon

Well-known member
Affected version
2.0.2
With Linux/Windows CLI commands, any supported force option silents irrelevant questions. Generally of the nature "are you sure"

XF2's CLI tends to still ask if you are sure when passed a --force/-f CLI argument. For example rebuild & upgrade do this.
 
With Symfony based CLI applications, the -n flag is typically the no-interaction flag. I suppose you could argue -f should imply -n, but -n is a global option whereas -f is command-specific and not available globally.
 
The option specifically exists for the purpose of skipping various checks, especially file health check tests etc.

As above, there are global options from Symfony which are specifically for suppressing interaction.
 
Back
Top Bottom