Fancy options parsing