Support static option in batch mode