function executeCmd(stdin) { if (commandName in commands) { commands[commandName]({ url: argv._[1], addOptions: argv, saveOptions: argv, mockFolderName: mockFolderName, port: port, verbose: verbose, silent: silent, stdin: stdin.trim() }); } else if (argv.version || argv.v) { commands.version(); } else { commands.help(); } }