We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5828e16 commit f7fd986Copy full SHA for f7fd986
lib/command.js
@@ -12,8 +12,6 @@ const { suggestSimilar } = require('./suggestSimilar');
12
13
// @ts-check
14
15
-const PRODUCTION = process.env.NODE_ENV === 'production';
16
-
17
class Command extends EventEmitter {
18
/**
19
* Initialize a new `Command`.
@@ -940,7 +938,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
940
938
941
939
_parseSubroutine(async, userArgsCallback, argv, parseOptions) {
942
const methodName = async ? 'parseAsync' : 'parse';
943
- if (!PRODUCTION && this._implicitlyCreated) {
+ if (this._implicitlyCreated) {
944
console.warn(`Called .${methodName}() on subcommand '${this._name}' added with .command().
945
Call on top-level command instead`);
946
}
0 commit comments