Heat olive oil in a large pan over medium heat. After about 90 seconds, when the oil is hot, add diced onions and sauté for 4-5 minutes until translucent.
Stir in diced tomatoes and minced garlic and sauté for an additional 6-7 minutes until fragrant, and the tomatoes have started to break down.
Add runner beans, string beans, or French green beans to the pan, along with parsley, water, sugar, lemon juice, pepper, and salt.
Cover the pan and let it cook until the beans are just tender, opening the lid periodically to stir and check for doneness. I prefer a shorter cook time of just a few minutes because I like my beans to still have some life left in them. Some people like them cooked more thoroughly, so just add more time if that is you.
Serve hot, garnished with parsley and Aleppo chili flakes, or pul biber, if desired.