@@ -46,6 +46,7 @@ public class Main {
46
46
public static final String PARAM_OUTPUT_FILE = "-of" ;
47
47
public static final String PARAM_OUTPUT_STDOUT = "-std" ;
48
48
public static final String PARAM_TEMPLATE = "-t" ;
49
+ public static final String PARAM_PREPEND_TEMPLATE = "-pt" ;
49
50
public static final String PARAM_TEMPLATE_BASE_DIR = "-tbd" ;
50
51
public static final String PARAM_TEMPLATE_PARTIAL_SUFFIX = "-tps" ;
51
52
public static final String PARAM_REPO = "-r" ;
@@ -120,6 +121,13 @@ public static void main(final String args[]) throws Exception {
120
121
.defaultValue (defaultSettings .getTemplatePath ()) //
121
122
.build ();
122
123
124
+ final Argument <String > prependTemplatePathArgument =
125
+ stringArgument (PARAM_PREPEND_TEMPLATE , "--prepend-template" ) //
126
+ .description (
127
+ "Template to use when prepending. A default template will be used if not specified." ) //
128
+ .defaultValue (defaultSettings .getPrependTemplatePath ()) //
129
+ .build ();
130
+
123
131
final Argument <String > templateBaseDirArgument =
124
132
stringArgument (PARAM_TEMPLATE_BASE_DIR , "--template-base-dir" ) //
125
133
.description ("Base dir of templates." ) //
@@ -503,6 +511,7 @@ public static void main(final String args[]) throws Exception {
503
511
outputStdoutArgument ,
504
512
outputFileArgument ,
505
513
templatePathArgument ,
514
+ prependTemplatePathArgument ,
506
515
templateBaseDirArgument ,
507
516
templatePartialSuffixArgument ,
508
517
fromCommitArgument ,
@@ -659,6 +668,9 @@ public static void main(final String args[]) throws Exception {
659
668
if (arg .wasGiven (templatePathArgument )) {
660
669
changelogApiBuilder .withTemplatePath (arg .get (templatePathArgument ));
661
670
}
671
+ if (arg .wasGiven (prependTemplatePathArgument )) {
672
+ changelogApiBuilder .withPrependTemplatePath (arg .get (prependTemplatePathArgument ));
673
+ }
662
674
if (arg .wasGiven (jiraIssuePatternArgument )) {
663
675
changelogApiBuilder .withJiraIssuePattern (arg .get (jiraIssuePatternArgument ));
664
676
}
0 commit comments