Skip to content
Myr

Merge branch 'zce-fix-errors-quote' into release/3.0.0

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by John Gee · parents 52b7e79, 91db0be · Browse files · 3 files+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+7 added−7 removed

  • tests:+2 added−2 removed
  • other:+5 added−5 removed

3 files+7 added−7 removed

modified:test/test.options.args.required.js+1 added-1 removed
modified:test/test.variadic.args.js+1 added-1 removed
modified:index.js+5 added-5 removed
792 unmodified lines
793 * @api private794 */795796Command.prototype.missingArgument = function(name) {797 console.error("error: missing required argument `%s'", name);797 console.error("error: missing required argument '%s'", name);798 process.exit(1);799};800801/**
5 unmodified lines
807 */808809Command.prototype.optionMissingArgument = function(option, flag) {810 if (flag) {811 console.error("error: option `%s' argument missing, got `%s'", option.flags, flag);811 console.error("error: option '%s' argument missing, got '%s'", option.flags, flag);812 } else {813 console.error("error: option `%s' argument missing", option.flags);813 console.error("error: option '%s' argument missing", option.flags);814 }815 process.exit(1);816};817
5 unmodified lines
823 */824825Command.prototype.unknownOption = function(flag) {826 if (this._allowUnknownOption) return;827 console.error("error: unknown option `%s'", flag);827 console.error("error: unknown option '%s'", flag);828 process.exit(1);829};830831/**
3 unmodified lines
835 * @api private836 */837838Command.prototype.variadicArgNotLast = function(name) {839 console.error("error: variadic arguments must be last `%s'", name);839 console.error("error: variadic arguments must be last '%s'", name);840 process.exit(1);841};842843/**
390 unmodified lines