lib/index.js
function runScriptFile(scriptFile)  {
	//node gets the node arguments, the nscript arguments and the actual script args combined. Slice all node and nscript args away!
	scriptArgs = scriptArgs.slice(scriptArgs.indexOf(scriptFile) + 1);
	if (shell.verbose())
		console.warn("Starting nscript " + scriptFile + scriptArgs.join(" "));

	runNscriptFunction(require(path.resolve(process.cwd(), scriptFile))); //nscript scripts should always export a single function that is the main
}
function runScriptFile(scriptFile)  {
	//node gets the node arguments, the nscript arguments and the actual script args combined. Slice all node and nscript args away!
	scriptArgs = scriptArgs.slice(scriptArgs.indexOf(scriptFile) + 1);
	if (shell.verbose())
		console.warn("Starting nscript " + scriptFile + scriptArgs.join(" "));

	runNscriptFunction(require(path.resolve(process.cwd(), scriptFile))); //nscript scripts should always export a single function that is the main
}
function runScriptFile ( scriptFile ) { //node gets the node arguments, the nscript arguments and the actual script args combined. Slice all node and nscript args away! scriptArgs = scriptArgs . slice ( scriptArgs . indexOf ( scriptFile ) + 1 ) ; if ( shell . verbose ( ) ) console . warn ( "Starting nscript " + scriptFile + scriptArgs . join ( " " ) ) ; runNscriptFunction ( require ( path . resolve ( process . cwd ( ) , scriptFile ) ) ) ; //nscript scripts should always export a single function that is the main }
Runs a file that contains a nscript script
@param  {string} scriptFile
Runs a file that contains a nscript script