From 87c6acb7c45e8a2386af34abf12bef26fa6b77c1 Mon Sep 17 00:00:00 2001 From: Zhiye Li Date: Sun, 7 Dec 2014 10:34:11 +0800 Subject: [PATCH] Revert "Make app name settable #292" --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 50ba8e6b1..77006c9fe 100644 --- a/index.js +++ b/index.js @@ -793,7 +793,7 @@ Command.prototype.usage = function(str) { }; /** - * Get/set the name of the command + * Get the name of the command * * @param {String} name * @return {String|Command} @@ -801,9 +801,7 @@ Command.prototype.usage = function(str) { */ Command.prototype.name = function(name) { - if (0 == arguments.length) return this._name; - this._name = name; - return this; + return this._name; }; /**