Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
fix some bugs of cli
Browse files Browse the repository at this point in the history
  • Loading branch information
XadillaX committed Aug 5, 2015
1 parent 9b0945d commit a13fef2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/illyria.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* reserved.
*/
var opts = require("nomnom").script("illyria").option("host", {
abbr: "h",
abbr: "o",
default: "127.0.0.1",
help: "the server host"
}).option("port", {
Expand All @@ -29,6 +29,14 @@ var opts = require("nomnom").script("illyria").option("host", {
abbr: "t",
default: 10000,
help: "the run timeout"
}).option("version", {
abbr: "v",
help: "show the version of illyria",
flag: true,
callback: function() {
var pkg = require("../package");
return "illyria v" + pkg.version;
}
}).parse();

var Illyria = require("../");
Expand Down

0 comments on commit a13fef2

Please sign in to comment.