Changed the --auth parameter to require a value so it is not ignored.

This commit is contained in:
nate 2015-03-01 14:13:08 -05:00
parent 4fd4c17036
commit a793d5c6cc

View File

@ -44,7 +44,7 @@ public class Codegen extends DefaultGenerator {
options.addOption("i", "input-spec", true, "location of the swagger spec, as URL or file"); options.addOption("i", "input-spec", true, "location of the swagger spec, as URL or file");
options.addOption("t", "template-dir", true, "folder containing the template files"); options.addOption("t", "template-dir", true, "folder containing the template files");
options.addOption("d", "debug-info", false, "prints additional info for debugging"); options.addOption("d", "debug-info", false, "prints additional info for debugging");
options.addOption("a", "auth", false, "addes authorization headers when fetching the swagger definitions remotely. Pass in a URL-encoded string of name:header with a comma separating multiple values"); options.addOption("a", "auth", true, "addes authorization headers when fetching the swagger definitions remotely. Pass in a URL-encoded string of name:header with a comma separating multiple values");
ClientOptInput clientOptInput = new ClientOptInput(); ClientOptInput clientOptInput = new ClientOptInput();
ClientOpts clientOpts = new ClientOpts(); ClientOpts clientOpts = new ClientOpts();