Flemish count Gwijde van Dampierre told the French king (his liege) to bugger off and made agreements with the guilds to counter the patricians influence (who were keen on France),
the French king send his army to squash the rebels and the French cavalry was defeated and there are historical anals where the Pope is quoted to have been informed by his envoys immediately after the Flemish had risen up,
in a series of afermath battles the French eventually succeeded in destroying the Flemish army but the battle had been so fierce for both sides that the French king recognised the county as independent after the Flemish had demobilised and dismantled military fortifications,
making the land very vulnerable for future French attacks. So in other words, when the French king wanted to go to war, the chance of Flemish survival were very small,