Skip to content

Commit

Permalink
Added default --watch dir of CWD
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 13, 2011
1 parent 28319b7 commit 0516a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/jade
Expand Up @@ -100,7 +100,7 @@ while (args.length) {
break;
case '-w':
case '--watch':
watchdir = args.shift();
watchdir = args.shift() || process.cwd();
watchers = {};
break;
case '--out':
Expand Down

2 comments on commit 0516a9c

@khingebjerg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If no watchdir is specified, this will only work if -w or --watch is the last option.

@tj
Copy link
Contributor Author

@tj tj commented on 0516a9c Mar 14, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah we should do it like stylus

Please sign in to comment.