Skip to content
Myr

fix: errors quote

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

authored by zce · committed by zce · parent 82d0d0a · 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
790 unmodified lines
791 * @api private792 */793794Command.prototype.missingArgument = function(name) {795 console.error("error: missing required argument `%s'", name);795 console.error("error: missing required argument `%s`", name);796 process.exit(1);797};798799/**
5 unmodified lines
805 */806807Command.prototype.optionMissingArgument = function(option, flag) {808 if (flag) {809 console.error("error: option `%s' argument missing, got `%s'", option.flags, flag);809 console.error("error: option `%s` argument missing, got `%s`", option.flags, flag);810 } else {811 console.error("error: option `%s' argument missing", option.flags);811 console.error("error: option `%s` argument missing", option.flags);812 }813 process.exit(1);814};815
5 unmodified lines
821 */822823Command.prototype.unknownOption = function(flag) {824 if (this._allowUnknownOption) return;825 console.error("error: unknown option `%s'", flag);825 console.error("error: unknown option `%s`", flag);826 process.exit(1);827};828829/**
3 unmodified lines
833 * @api private834 */835836Command.prototype.variadicArgNotLast = function(name) {837 console.error("error: variadic arguments must be last `%s'", name);837 console.error("error: variadic arguments must be last `%s`", name);838 process.exit(1);839};840841/**
386 unmodified lines