@@ -235,6 +235,7 @@ public ElixirClientCodegen() {
235235 "The main namespace to use for all classes. e.g. Yay.Pets" ));
236236 cliOptions .add (new CliOption ("licenseHeader" , "The license header to prepend to the top of all source files." ));
237237 cliOptions .add (new CliOption (CodegenConstants .PACKAGE_NAME , "Elixir package name (convention: lowercase)." ));
238+ cliOptions .add (new CliOption ("skipLicenseHeader" , "Skip the license header in the generated files." ).defaultValue (Boolean .FALSE .toString ()));
238239 }
239240
240241 /**
@@ -277,6 +278,7 @@ public void processOpts() {
277278 additionalProperties .put ("supportedElixirVersion" , supportedElixirVersion );
278279 additionalProperties .put ("extraApplications" , join ("," , extraApplications ));
279280 additionalProperties .put ("deps" , deps );
281+ additionalProperties .put ("skipLicenseHeader" , Boolean .FALSE );
280282 additionalProperties .put ("underscored" , new Mustache .Lambda () {
281283 @ Override
282284 public void execute (Template .Fragment fragment , Writer writer ) throws IOException {
@@ -309,6 +311,10 @@ public void execute(Template.Fragment fragment, Writer writer) throws IOExceptio
309311 if (additionalProperties .containsKey (CodegenConstants .PACKAGE_VERSION )) {
310312 setPackageVersion ((String ) additionalProperties .get (CodegenConstants .PACKAGE_VERSION ));
311313 }
314+ if (additionalProperties .containsKey ("skipLicenseHeader" )) {
315+ boolean skipLicenseHeader = Boolean .parseBoolean (additionalProperties .get ("skipLicenseHeader" ).toString ());
316+ additionalProperties .put ("skipLicenseHeader" , skipLicenseHeader );
317+ }
312318 additionalProperties .put (CodegenConstants .PACKAGE_VERSION , packageVersion );
313319 }
314320
0 commit comments