Skip to content

Commit

Permalink
Provided support for the option-cli because of the postmanlabs#315
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed Dec 18, 2020
1 parent e9cfa48 commit 70f6906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/openapi2postmanv2.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ program
.option('-t, --test', 'Test the OPENAPI converter')
.option('-p, --pretty', 'Pretty print the JSON file')
.option('-c, --options-config <optionsConfig>', 'JSON file containing Converter options')
.option('-O, --options <options>', 'comma separated list of options', parseOptions)
.option('-O, --options-cli <optionsCli>', 'comma separated list of options', parseOptions)
.option('-g, --generate <generate>', 'Generate postman tests given the JSON file with test options');

program.on('--help', function() {
Expand All @@ -79,7 +79,7 @@ outputFile = program.output || false;
testFlag = program.test || false;
prettyPrintFlag = program.pretty || false;
configFile = program.optionsConfig || false;
definedOptions = program.options || {};
definedOptions = program.optionsCli || {};
testsuiteFile = program.generate || false;
swaggerInput;
swaggerData;
Expand Down

0 comments on commit 70f6906

Please sign in to comment.