@@ -46,6 +46,7 @@ public class Main {
4646 public static final String PARAM_OUTPUT_FILE = "-of" ;
4747 public static final String PARAM_OUTPUT_STDOUT = "-std" ;
4848 public static final String PARAM_TEMPLATE = "-t" ;
49+ public static final String PARAM_PREPEND_TEMPLATE = "-pt" ;
4950 public static final String PARAM_TEMPLATE_BASE_DIR = "-tbd" ;
5051 public static final String PARAM_TEMPLATE_PARTIAL_SUFFIX = "-tps" ;
5152 public static final String PARAM_REPO = "-r" ;
@@ -120,6 +121,13 @@ public static void main(final String args[]) throws Exception {
120121 .defaultValue (defaultSettings .getTemplatePath ()) //
121122 .build ();
122123
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+
123131 final Argument <String > templateBaseDirArgument =
124132 stringArgument (PARAM_TEMPLATE_BASE_DIR , "--template-base-dir" ) //
125133 .description ("Base dir of templates." ) //
@@ -503,6 +511,7 @@ public static void main(final String args[]) throws Exception {
503511 outputStdoutArgument ,
504512 outputFileArgument ,
505513 templatePathArgument ,
514+ prependTemplatePathArgument ,
506515 templateBaseDirArgument ,
507516 templatePartialSuffixArgument ,
508517 fromCommitArgument ,
@@ -659,6 +668,9 @@ public static void main(final String args[]) throws Exception {
659668 if (arg .wasGiven (templatePathArgument )) {
660669 changelogApiBuilder .withTemplatePath (arg .get (templatePathArgument ));
661670 }
671+ if (arg .wasGiven (prependTemplatePathArgument )) {
672+ changelogApiBuilder .withPrependTemplatePath (arg .get (prependTemplatePathArgument ));
673+ }
662674 if (arg .wasGiven (jiraIssuePatternArgument )) {
663675 changelogApiBuilder .withJiraIssuePattern (arg .get (jiraIssuePatternArgument ));
664676 }
0 commit comments