diff --git a/scripts/b-raml2html b/scripts/b-raml2json
similarity index 69%
rename from scripts/b-raml2html
rename to scripts/b-raml2json
index 7a5255d3c..5427387eb 100755
--- a/scripts/b-raml2html
+++ b/scripts/b-raml2json
@@ -6,13 +6,12 @@ var path = require('path');
var args = process.argv.slice(2);
-if (args.length < 2) {
- console.log('Must provide input RAML file and output HTML file');
+if (args.length < 1) {
+ console.log('Must provide input RAML file');
process.exit(1);
}
var raml_file = path.resolve(args[0]);
-var html_file = path.resolve(args[1]);
var api = raml.loadApiSync(raml_file);
console.log(JSON.stringify(api.toJSON(), null, 2));