


module.exports = function (repl)
{
	var
		context = repl.context,
		cdir    = context.console.dir;

	function dir (object)
	{
		object || (object = context);

		cdir(object, 0);
	}

	return dir;
}




module.exports = function (repl)
{
	var
		context = repl.context,
		cdir    = context.console.dir;

	function dir (object)
	{
		if (! arguments.length)
		{
			object = context
		}

		cdir(object, 0);
	}

	return dir;
}

fix not strong dir arguments check.