Added missing default values.

This commit is contained in:
Olof Larsson 2015-05-13 23:26:38 +02:00
parent 8ba0c913a1
commit 2a3f625e0e

View File

@ -251,19 +251,19 @@ public class MassiveCommand
// Without reqFromConsole.
public <T> ArgSetting<T> addArg(T defaultValue, AR<T> reader, String name, String defaultDesc, boolean concatFromHere)
{
return this.addArg(new ArgSetting<T>(reader, name, defaultDesc), concatFromHere);
return this.addArg(new ArgSetting<T>(defaultValue, reader, name, defaultDesc), concatFromHere);
}
// Without defaultDesc.
public <T> ArgSetting<T> addArg(T defaultValue, AR<T> reader, boolean requiredFromConsole, String name, boolean concatFromHere)
{
return this.addArg(new ArgSetting<T>(reader, requiredFromConsole, name), concatFromHere);
return this.addArg(new ArgSetting<T>(defaultValue, reader, requiredFromConsole, name), concatFromHere);
}
// Without concat.
public <T> ArgSetting<T> addArg(T defaultValue, AR<T> reader, boolean requiredFromConsole, String name, String defaultDesc)
{
return this.addArg(new ArgSetting<T>(reader, requiredFromConsole, name, defaultDesc), false);
return this.addArg(new ArgSetting<T>(defaultValue, reader, requiredFromConsole, name, defaultDesc), false);
}
// WITHOUT 2