 
 	if opts.version
 		return console.log 'v' + braveMousePackageJson.version
+
+	if opts.path
+		exitCode = 0
+
+		async.each opts.path, (filePath, callback) ->
+			braveMouse.validate filePath, (err, results) ->
+				return callback err if err
+
+				if results is true
+					console.log "✔ #{filePath}"
+					callback()
+				else
+					console.log "✘ #{filePath}"
+
+					for property, result of results
+						console.log "  expected #{property} to be #{result.expected} but is #{result.is}"
+
+					exitCode = 2
+
+					callback()
+		, (err) ->
+			if err
+				console.error err
+				process.exit 1
+			else
+				process.exit exitCode

	opts = parser
	.script 'brave-mouse'
	.options
		help:
			abbr: 'h'
			flag: true

async = require 'async'
parser = require 'nomnom'

braveMouse = require '../brave-mouse'
