We show that option prices can always be obtained as the values of simple optimization problems. This easy remark has two consequences: sensitivity analysis is simplified (by applying the envelope theorem) and numerical procedures are improved. We give two examples of applications: options on coupon bonds and corporate bonds.