diff --git a/tiddlywiki.js b/tiddlywiki.js index 99dad806e..57aa0d523 100644 --- a/tiddlywiki.js +++ b/tiddlywiki.js @@ -123,6 +123,16 @@ var commandLineSwitches = { }); } }, + savetiddler: { + args: {min: 2, max: 3}, + handler: function(args,callback) { + var type = args[2] || "text/html"; + fs.writeFileSync(args[1], + "" + + app.store.renderTiddler(type,args[0]) + + "","utf8"); + } + }, savetiddlers: { args: {min: 1, max: 1}, handler: function(args,callback) {