diff --git a/index.js b/index.js index e3101d1..16fe4da 100644 --- a/index.js +++ b/index.js @@ -31,12 +31,13 @@ function main () { } const snippet = require (`./snippets/${template}/index.js`); + const folder = process.cwd(); - if (!snippet.assert (process.cwd, args)) { + if (!snippet.assert (folder, args)) { console.log ('snipped rejected arguments'); return; } - snippet.run (process.cwd, args); + snippet.run (folder, args); } main ();