remove required=false in @Parameter

This commit is contained in:
Thomas Rubini 2022-12-15 19:49:06 +01:00
parent 1bed4f0c49
commit 270edf45ca
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -19,8 +19,7 @@ public class CommandLineParams {
* Distribution the user want to search packages in
*/
@Parameter(names = {"--distro", "-d"},
description = "Linux distribution to search in",
required = false)
description = "Linux distribution to search in")
public String distribution;
/**
@ -28,7 +27,6 @@ public class CommandLineParams {
*/
@Parameter(names = {"--help", "-h"},
description = "Display this help",
help = true,
required = false)
help = true)
public boolean help = false;
}