Skip to content

Commit

Permalink
Rename camelcase to camelCase (#151)
Browse files Browse the repository at this point in the history
* Rename `camelcase` to `camelCase`

* Remove meaningless comments
  • Loading branch information
ulken committed May 12, 2020
1 parent 1f265e4 commit 20f6e85
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.js
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
const buildParserOptions = require('minimist-options');
const yargs = require('yargs-parser');
const camelCase = require('camelcase');
const camelcaseKeys = require('camelcase-keys');
const camelCaseKeys = require('camelcase-keys');
const decamelizeKeys = require('decamelize-keys');
const trimNewlines = require('trim-newlines');
const redent = require('redent');
Expand Down Expand Up @@ -187,7 +187,7 @@ const meow = (helpText, options) => {
const input = argv._;
delete argv._;

const flags = camelcaseKeys(argv, {exclude: ['--', /^\w$/]});
const flags = camelCaseKeys(argv, {exclude: ['--', /^\w$/]});
const unnormalizedFlags = {...flags};

validateFlags(flags, options);
Expand All @@ -196,10 +196,7 @@ const meow = (helpText, options) => {
delete flags[flagValue.alias];
}

// Get a list of missing flags that are required
const missingRequiredFlags = getMissingRequiredFlags(options.flags, flags, input);

// Print error message for missing flags that are required
if (missingRequiredFlags.length > 0) {
reportMissingRequiredFlags(missingRequiredFlags);
process.exit(2);
Expand Down

0 comments on commit 20f6e85

Please sign in to comment.