Permalink
Browse files

Make all args optional

  • Loading branch information...
1 parent 2a78e0e commit c1b6a19464ae5c981e85e83d53916c0c4271d454 @aaronjorbin committed Feb 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 slidedown.js
View
@@ -53,7 +53,7 @@ fs.watchFile('footer.html', function(curr,prev){
// The second arg is the output file
function writeFile(){
- var filename = process.argv[3] || process.argv[2].replace(/\.md/, '.html');
+ var filename = sourceFilename || process.argv[2].replace(/\.md/, '.html');
var innerHtml = md(source);
var html = header + innerHtml + footer;
fs.writeFileSync('public/'+ filename, html, 'ascii');

0 comments on commit c1b6a19

Please sign in to comment.