France did not honor it's obligations and if it wasn't in position to attack Germany then France shouldn't have made those guarantees (Maurice Gamelin's "bold relief offensive"). Thinking that Germany wouldn't have attacked France if war hadn't been declared is a bit naive.