Browse files

finalized some code, and upped version

  • Loading branch information...
1 parent d8ee9b8 commit 73fe9a0c52bb066e8cd63be777c07677e77f2cc1 @mgan59 committed Aug 24, 2011
Showing with 6 additions and 5 deletions.
  1. +5 −4 lib/docdown.js
  2. +1 −1 package.json
View
9 lib/docdown.js
@@ -32,11 +32,12 @@
//Handle output path
var outputPath = '';
if(argv.output){
- // if set check if output path is just a directory
- // or if a file name was included
- throw new Error('Failed to specify output parameter');
+ //if output param specified use it as filename output
+ // should do a check and make sure it is a valid syntaxfiletype
+ outputPath = argv.output;
} else {
- //dump to local directory using markdown source name
+ //if no output specified use the markdown.source filename but tear off the .markdown
+ // and replace with html
var file_name_parts = markdownInput.split('.');
outputPath = file_name_parts[0]+'.html';
}
View
2 package.json
@@ -3,7 +3,7 @@
"description": "A simple markdown to html command-line conversion tool",
"keywords": ["markdown", "html", "document", "command-line"],
"author": "Morgan Craft",
- "version": "0.0.2",
+ "version": "0.0.3",
"licenses": [{
"type": "MIT",
"url": "http://github.com/mgan59/docdown/license.markdown"

0 comments on commit 73fe9a0

Please sign in to comment.