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
merged 1 commit into from May 19, 2011

Conversation

Projects
None yet
1 participant
@ghost

ghost commented May 19, 2011

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

@tj tj commented on the diff May 19, 2011

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

tj May 19, 2011

Owner

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]
e278681

@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
201b6ee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment