Skip to content

Commit

Permalink
Code style tweak (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulken authored Apr 16, 2020
1 parent 2954ed2 commit 3571757
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,28 @@ const meow = (helpText, options) => {
options.flags
) : options.flags;

let minimistoptions = {
let minimistOptions = {
arguments: options.input,
...minimistFlags
};

minimistoptions = decamelizeKeys(minimistoptions, '-', {exclude: ['stopEarly', '--']});
minimistOptions = decamelizeKeys(minimistOptions, '-', {exclude: ['stopEarly', '--']});

if (options.inferType) {
delete minimistoptions.arguments;
delete minimistOptions.arguments;
}

minimistoptions = buildMinimistOptions(minimistoptions);
minimistOptions = buildMinimistOptions(minimistOptions);

if (minimistoptions['--']) {
minimistoptions.configuration = {
...minimistoptions.configuration,
if (minimistOptions['--']) {
minimistOptions.configuration = {
...minimistOptions.configuration,
'populate--': true
};
}

const {pkg} = options;
const argv = yargs(options.argv, minimistoptions);
const argv = yargs(options.argv, minimistOptions);
let help = redent(trimNewlines((options.help || '').replace(/\t+\n*$/, '')), 2);

normalizePackageData(pkg);
Expand Down

0 comments on commit 3571757

Please sign in to comment.