bunkat/pseudoloc

pseudoloc command line not updated to accept start/end delim

Closed this issue · 4 comments

pseudoloc command line not updated to accept start/end delim

I merged your pull request, thanks!

When I do npm install pseudoloc:
SFCAML-1Y0F1G3:greenhorn ugangha$ npm install pseudoloc
npm WARN package.json greenhorn@0.0.0 No repository field.
npm http GET https://registry.npmjs.org/pseudoloc
npm http 200 https://registry.npmjs.org/pseudoloc
npm http GET https://registry.npmjs.org/commander
npm http 200 https://registry.npmjs.org/commander
pseudoloc@1.1.0 node_modules/pseudoloc
└── commander@2.1.0

However I get the old pseudoloc command-line. Do you have to do something to make npm know of the new release?

Hari

#!/usr/bin/env node

var program = require('commander'),
pseudoloc = require('../index'),
fs = require('fs'),
path = require('path');

program
.version(pseudoloc.version)
.option('-d, --delimiter ', "sets the token delimiter (default: '%')")
.option('-p, --prepend ', "sets the string start tag (default: '[!!')")
.option('-a, --append ', "sets the string end tag (default: '!!]')")
.option('-e, --extend ', "sets the padding percentage (default: '0')", parseFloat)
.option('-o, --override ', "replaces all characters with specified character")
.option('-s, --string ', "string to pseudolocalize")
.option('-r, --readFile ', "path to file to pseudolocalize")
.option('-w, --writeFile ', "path of file to write results to");

program.on('--help', function(){

I know why... you updated the version to 1.1.0 and then I gave the command line change. Now npm install is not including the command line change. Hence I guess you may have to bump the version to 1.1.1.

Ah, sorry about that. You can just grab the .js file from GitHub for the time being. I'll get NPM updated as soon as I can.