You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.out.println("<JIRA_URL>: The URL of the JIRA instance (e.g. https://somecompany.atlassian.net).");
19
22
System.out.println("<JIRA_username>: The username used to log into JIRA.");
@@ -30,6 +33,8 @@ public static void showUsage() {
30
33
System.out.println("\t--debug: Print debug/logging information to standard out. This will also force errors to go to the standard out and exit with code 0 rather than 1.");
31
34
System.out.println("\t--changelog-description-field 'field_name': The name of the field in JIRA you wish to use as the changelog description field. If you do not use this, it will default to the summary field.");
32
35
System.out.println("\t--eol-style (NATIVE|CRLF|LF): The type of line endings you wish the changelog files to use. Valid values are NATIVE (system line endings), CRLF (Windows line endings) or LF (UNIX line endings). If you do not use this, the changelogs will use the default system line endings.");
36
+
System.out.println("\t--version-starts-with 'Version name prefix': Only display versions in the changelog that have a name starting with 'Version name prefix'. This cannot be used with --version-less-than-or-equal. This is useful for restricting what goes in the changelog if you are producing different version side-by-side.");
37
+
System.out.println("\t--version-less-than-or-equal 'Version name': Only display versions in the changelog that have a name less than or equal to 'Version name'. This cannot be used with --version-starts-with. This uses a Java string comparison. This is useful for restricting what goes in the changelog if you are producing different version side-by-side.");
33
38
}
34
39
35
40
/**
@@ -65,6 +70,8 @@ public static void main(String[] args) {
65
70
Stringfiles[] = null;
66
71
StringobjectCachePath = null;
67
72
StringdescriptionField = null;
73
+
StringfixVersionRestrictMode = null;
74
+
StringfixVersionRestrictTerm = null;
68
75
LineEndingending = LineEnding.NATIVE; // default to native line endings
69
76
for (; currentArgument < args.length; currentArgument++) {
70
77
try {
@@ -100,7 +107,24 @@ public static void main(String[] args) {
Logger.log("--version-less-than-or-equal found. Only inlcude versions with a name less than or equal to " + fixVersionRestrictTerm + " in the Changelog.");
0 commit comments