Skip to content
Myr

removed indentation from 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 2c20e91 · 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
791 unmodified lines
792 */793794Command.prototype.missingArgument = function(name) {795 console.error();796 console.error(" error: missing required argument `%s'", name);796 console.error("error: missing required argument `%s'", name);797 console.error();798 process.exit(1);799};800
7 unmodified lines
808809Command.prototype.optionMissingArgument = function(option, flag) {810 console.error();811 if (flag) {812 console.error(" error: option `%s' argument missing, got `%s'", option.flags, flag);812 console.error("error: option `%s' argument missing, got `%s'", option.flags, flag);813 } else {814 console.error(" error: option `%s' argument missing", option.flags);814 console.error("error: option `%s' argument missing", option.flags);815 }816 console.error();817 process.exit(1);818};
7 unmodified lines
826827Command.prototype.unknownOption = function(flag) {828 if (this._allowUnknownOption) return;829 console.error();830 console.error(" error: unknown option `%s'", flag);830 console.error("error: unknown option `%s'", flag);831 console.error();832 process.exit(1);833};834
5 unmodified lines
840 */841842Command.prototype.variadicArgNotLast = function(name) {843 console.error();844 console.error(" error: variadic arguments must be last `%s'", name);844 console.error("error: variadic arguments must be last `%s'", name);845 console.error();846 process.exit(1);847};848
387 unmodified lines