Skip to content

Commit

Permalink
Add command line command rabel using the bin link
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Berners-Lee committed Feb 5, 2016
1 parent 4224a66 commit 72f1cb0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"rdflib": "^0.2.9",
"xmldom": "^0.1.22"
},
"bin": {
"rabel": "rabel.js"
},

"devDependencies": {},
"main": "rabel.js"
}
6 changes: 3 additions & 3 deletions rabel.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#!/usr/local/bin/node
// Utility Data conversion program.
//
// Test platform for parsers and serializers
Expand Down Expand Up @@ -76,7 +76,7 @@ var doNext = function(remaining) {
break;

case '-help':
condole.log(helpMessage);
console.log(helpMessage);
break;

case '-in':
Expand Down Expand Up @@ -129,7 +129,7 @@ var doNext = function(remaining) {

default:
console.log("Unknown command: " + left);
condole.log(helpMessage);
console.log(helpMessage);
process.exit(1);
}
}
Expand Down

0 comments on commit 72f1cb0

Please sign in to comment.