Support short variants of boolean properties #279

This commit is contained in:
Peter Palaga
2020-12-21 16:07:00 +01:00
parent 87e6712992
commit fc2c4076a7
3 changed files with 16 additions and 2 deletions

View File

@@ -23,7 +23,10 @@ import java.util.stream.Stream;
import org.mvndaemon.mvnd.common.Environment.DocumentedEnumEntry;
public enum OptionType {
/** <code>true</code> or <code>false</code> */
/**
* <code>true</code> or <code>false</code>; empty string is also interpreted as <code>true</code> - so
* <code>-Dmvnd.noBuffering</code> is equivalent to <code>-Dmvnd.noBuffering=true</code>
*/
BOOLEAN,
/**
* An unlabeled whole number of milliseconds or a whole number followed by an optional space and a unit