-
-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not wipe options with default values when using --arguments-file (#…
…635) Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
- Loading branch information
1 parent
c576284
commit 1d2ea6d
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/io/jenkins/update_center/args4j/Default.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.jenkins.update_center.args4j; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
/** | ||
* Provide a way to define default values for {@link org.kohsuke.args4j.Option}s | ||
* that cannot be reset in {@link io.jenkins.update_center.Main#run} when taking | ||
* an arguments file. | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface Default { | ||
String value(); | ||
} |