diff --git a/bin/create b/bin/create index 088ff933c9..f8c148c7dd 100755 --- a/bin/create +++ b/bin/create @@ -34,11 +34,11 @@ var ConfigParser = require('cordova-common').ConfigParser; var Api = require('./templates/scripts/cordova/Api'); var argv = require('nopt')({ - 'help': Boolean, - 'cli': Boolean, - 'shared': Boolean, // alias for --link - 'link': Boolean -}, { 'd': '--verbose' }); + help: Boolean, + cli: Boolean, + shared: Boolean, // alias for --link + link: Boolean +}, { d: '--verbose' }); var projectPath = argv.argv.remain[0]; diff --git a/bin/templates/scripts/cordova/build b/bin/templates/scripts/cordova/build index e795d13dd8..507e80e617 100755 --- a/bin/templates/scripts/cordova/build +++ b/bin/templates/scripts/cordova/build @@ -31,23 +31,23 @@ if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >= // Parse arguments var buildOpts = nopt({ - 'verbose': Boolean, - 'silent': Boolean, - 'archs': String, - 'debug': Boolean, - 'release': Boolean, - 'device': Boolean, - 'emulator': Boolean, - 'codeSignIdentity': String, - 'codeSignResourceRules': String, - 'provisioningProfile': String, - 'automaticProvisioning': Boolean, - 'developmentTeam': String, - 'packageType': String, - 'buildConfig': String, - 'buildFlag': [String, Array], - 'noSign': Boolean -}, { '-r': '--release', 'd': '--verbose' }, args); + verbose: Boolean, + silent: Boolean, + archs: String, + debug: Boolean, + release: Boolean, + device: Boolean, + emulator: Boolean, + codeSignIdentity: String, + codeSignResourceRules: String, + provisioningProfile: String, + automaticProvisioning: Boolean, + developmentTeam: String, + packageType: String, + buildConfig: String, + buildFlag: [String, Array], + noSign: Boolean +}, { '-r': '--release', d: '--verbose' }, args); // Make buildOptions compatible with PlatformApi build method spec buildOpts.argv = buildOpts.argv.remain; diff --git a/bin/templates/scripts/cordova/clean b/bin/templates/scripts/cordova/clean index ccd4a56d56..6699e47419 100755 --- a/bin/templates/scripts/cordova/clean +++ b/bin/templates/scripts/cordova/clean @@ -29,9 +29,9 @@ if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >= // Do some basic argument parsing var opts = nopt({ - 'verbose': Boolean, - 'silent': Boolean -}, { 'd': '--verbose' }); + verbose: Boolean, + silent: Boolean +}, { d: '--verbose' }); // Make buildOptions compatible with PlatformApi clean method spec opts.argv = opts.argv.original; diff --git a/bin/templates/scripts/cordova/run b/bin/templates/scripts/cordova/run index 81741c84fd..e42df50756 100755 --- a/bin/templates/scripts/cordova/run +++ b/bin/templates/scripts/cordova/run @@ -31,23 +31,23 @@ if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >= // Parse arguments (includes build params as well) var opts = nopt({ - 'verbose': Boolean, - 'silent': Boolean, - 'debug': Boolean, - 'release': Boolean, - 'nobuild': Boolean, - 'archs': String, - 'list': Boolean, - 'device': Boolean, - 'emulator': Boolean, - 'target': String, - 'codeSignIdentity': String, - 'codeSignResourceRules': String, - 'provisioningProfile': String, - 'automaticProvisioning': Boolean, - 'buildConfig': String, - 'noSign': Boolean -}, { 'd': '--verbose' }, args); + verbose: Boolean, + silent: Boolean, + debug: Boolean, + release: Boolean, + nobuild: Boolean, + archs: String, + list: Boolean, + device: Boolean, + emulator: Boolean, + target: String, + codeSignIdentity: String, + codeSignResourceRules: String, + provisioningProfile: String, + automaticProvisioning: Boolean, + buildConfig: String, + noSign: Boolean +}, { d: '--verbose' }, args); // Make options compatible with PlatformApi build method spec opts.argv = opts.argv.remain; diff --git a/bin/update b/bin/update index 704ab1f3f7..abaf87f36a 100755 --- a/bin/update +++ b/bin/update @@ -22,10 +22,10 @@ var path = require('path'); var Api = require('./templates/scripts/cordova/Api'); var args = require('nopt')({ - 'link': Boolean, - 'shared': Boolean, // alias for --link - 'help': Boolean -}, { 'd': '--verbose' }); + link: Boolean, + shared: Boolean, // alias for --link + help: Boolean +}, { d: '--verbose' }); if (args.help || args.argv.remain.length === 0) { console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'update')) + ' [--link]');