Skip to content

Commit

Permalink
Fix bug for not spec the input
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Nov 5, 2012
1 parent e53f383 commit 57cdfad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/slidemate
Expand Up @@ -27,13 +27,13 @@ program.on('--help', function(){

// parse argv
program.parse(process.argv);

if (!program.file) {
console.log('$ slidemate -f <file.md> [-o <folder>]');
return;
}

if (!program.output) {
program.output = path.resolve(program.folder, 'doc');
program.output = path.resolve(program.file, '..', 'slides');
}

program.output = path.resolve(program.output);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -3,12 +3,12 @@
"version": "0.0.1",
"description": "slide mate",
"main": "index.js",
"directories": {
"doc": "doc"
},
"scripts": {
"test": "mocha"
},
"bin": {
"slidemate": "./bin/slidemate"
},
"dependencies": {
"commander": "*",
"marked": "*",
Expand Down

0 comments on commit 57cdfad

Please sign in to comment.