Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Simple addition: a "-d/--directory" option to specify an alternate template directory. #7

merged 1 commit into from May 19, 2011


None yet
1 participant

ghost commented May 19, 2011

I found the need for this on a project, think it might be generally useful. Very simple change.

@tj tj commented on the diff May 19, 2011

@@ -202,6 +203,10 @@ while (args.length) {
case '--template':
template = requireArgument(arg);
+ case '-d':
+ case '--directory':
+ templates = fs.realpathSync( requireArgument(arg) );

tj May 19, 2011


no spaces in parens! haha :p

@tj tj added a commit that referenced this pull request May 19, 2011

@tj tj Merge pull request #7 from recursivevirus/master
Added: "-d/--directory" option to specify an alternate template directory [recursivevirus]

@tj tj merged commit e278681 into tj:master May 19, 2011

@Raynos Raynos pushed a commit to Raynos/ngen that referenced this pull request Apr 23, 2014

@dfellis dfellis Merge pull request #7 from uber/testability
Removed hard coded stuff from index.js for more testability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment