Skip to content

Commit

Permalink
More darn bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bennett Amodio committed Jun 11, 2016
1 parent 403a560 commit 02911f2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ YUI.add('options', function (Y) {
Y.Options = function (args) {
var options = {
port: 3000,
<<<<<<< HEAD
ip: '127.0.0.1',
=======
>>>>>>> a5e78482a6930f1319a77bbfa76ff78e129f68a0
nocode: false
};

Expand Down Expand Up @@ -112,26 +109,19 @@ YUI.add('options', function (Y) {
case '--server':
options.server = true;
var a = args.shift();
<<<<<<< HEAD
var delim = a.indexOf(':');
if (delim >= 0) {
var socket = a.split(':');
options.ip = socket[0];
options.port = socket[1];
break;
}
=======
>>>>>>> a5e78482a6930f1319a77bbfa76ff78e129f68a0
var p = parseInt(a, 10);
if (isNaN(p) || !p) {
if (a) {
args.unshift(a);
}
<<<<<<< HEAD
Y.log('Failed to extract socket, setting to the default 127.0.0.1:3000', 'warn', 'yuidoc');
=======
Y.log('Failed to extract port, setting to the default :3000', 'warn', 'yuidoc');
>>>>>>> a5e78482a6930f1319a77bbfa76ff78e129f68a0
} else {
options.port = p;
}
Expand Down

0 comments on commit 02911f2

Please sign in to comment.