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 * 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;
} }