We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6d2ef commit 2ee8394Copy full SHA for 2ee8394
1 file changed
cg.js
@@ -44,7 +44,8 @@ var argv = require('yargs')
44
45
let configStr = argv._[0] || 'nodejs';
46
let configName = path.basename(configStr);
47
-let configPath = path.dirname(configStr) || './configs';
+let configPath = path.dirname(configStr);
48
+if (!configPath || (configPath === '.')) configPath = './configs';
49
let configFile = path.resolve(configPath,configName)+'.json';
50
let config = require(configFile);
51
let defName = argv._[1] || './defs/petstore3.json';
0 commit comments