From 46b0596eb893ea89c586511d1cc92a4a57df6517 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Sat, 4 Apr 2015 21:28:06 -0700 Subject: [PATCH] fix protocol cli --- cli.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli.js b/cli.js index 8e6cc6a..d9c3c43 100755 --- a/cli.js +++ b/cli.js @@ -5,11 +5,11 @@ var packager = require('./') args.dir = args._[0] args.name = args._[1] -var protocolSchemes = args.protocol -var protocolNames = args['protocol-names'] +var protocolSchemes = [].concat(args.protocol || []) +var protocolNames = [].concat(args['protocol-name'] || []) if (protocolSchemes && protocolNames && protocolNames.length === protocolSchemes.length) { - args.protocol = protocolSchemes.map(function (scheme, i) { + args.protocols = protocolSchemes.map(function (scheme, i) { return {schemes: [scheme], name: protocolNames[i]} }) }