Skip to content

Commit

Permalink
Let the example script take an argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperla committed Jun 2, 2012
1 parent 88bd712 commit aa48e48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/vcard-to-json.js
Expand Up @@ -3,8 +3,10 @@
var util = require('util');
var vCard = require('../vcard');

var file = process.argv[2] || "tests/vcard-4.0.vcf";
var card = new vCard();
card.readFile("tests/vcard-4.0.vcf", function(err, json){

card.readFile(file, function(err, json){
if (err) {
console.error(err);
}
Expand Down

0 comments on commit aa48e48

Please sign in to comment.