Move example to flags package