remove required=false in @Parameter
This commit is contained in:
parent
1bed4f0c49
commit
270edf45ca
@ -19,8 +19,7 @@ public class CommandLineParams {
|
|||||||
* Distribution the user want to search packages in
|
* Distribution the user want to search packages in
|
||||||
*/
|
*/
|
||||||
@Parameter(names = {"--distro", "-d"},
|
@Parameter(names = {"--distro", "-d"},
|
||||||
description = "Linux distribution to search in",
|
description = "Linux distribution to search in")
|
||||||
required = false)
|
|
||||||
public String distribution;
|
public String distribution;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -28,7 +27,6 @@ public class CommandLineParams {
|
|||||||
*/
|
*/
|
||||||
@Parameter(names = {"--help", "-h"},
|
@Parameter(names = {"--help", "-h"},
|
||||||
description = "Display this help",
|
description = "Display this help",
|
||||||
help = true,
|
help = true)
|
||||||
required = false)
|
|
||||||
public boolean help = false;
|
public boolean help = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user