Skip to content
Myr

removed newline above and below errors

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

authored by Jared Petersen · committed by Roman Vanesyan · parent b6549f2 · Browse files · 4 files+5 added−17 removed
This commit

State

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

Diff stats

4 files+5 added−17 removed

  • tests:+5 added−9 removed
  • other:+0 added−8 removed

4 files+5 added−17 removed

modified:test/test.command.allowUnknownOption.js+2 added-2 removed
modified:test/test.options.args.required.js+2 added-2 removed
modified:test/test.variadic.args.js+1 added-5 removed
modified:index.js-8 removed
790 unmodified lines
791 * @api private792 */793794Command.prototype.missingArgument = function(name) {795 console.error();795 console.error("error: missing required argument `%s'", name);797 console.error();796 process.exit(1);797};798799/**
4 unmodified lines
804 * @api private805 */806807Command.prototype.optionMissingArgument = function(option, flag) {810 console.error();808 if (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);812 }816 console.error();813 process.exit(1);814};815816/**
4 unmodified lines
821 */822823Command.prototype.unknownOption = function(flag) {824 if (this._allowUnknownOption) return;829 console.error();825 console.error("error: unknown option `%s'", flag);831 console.error();826 process.exit(1);827};828829/**
3 unmodified lines
833 * @api private834 */835836Command.prototype.variadicArgNotLast = function(name) {843 console.error();837 console.error("error: variadic arguments must be last `%s'", name);845 console.error();838 process.exit(1);839};840841/**
386 unmodified lines