Noninteractive option

Implements #167