001package com.github.sormuras.bach.command; 002 003import java.nio.file.Path; 004import java.util.Optional; 005 006/** 007 * An option holding the default place where to store generated files. 008 * 009 * <p>For example, {@code javac} stores generated class files; and {@code javadoc} stores generated 010 * HTML files in this directory. 011 * 012 * @param value Specify where to place generated files. 013 */ 014public record OutputDirectoryOption(Optional<Path> value) implements Option.Value<Path> { 015 public static OutputDirectoryOption empty() { 016 return new OutputDirectoryOption(Optional.empty()); 017 } 018}