format options as code