Skip to content

Commit

Permalink
Adds ability to use CLI default expiration AND config default expiration
Browse files Browse the repository at this point in the history
closes #79
  • Loading branch information
ominestre committed Apr 13, 2022
1 parent 1630463 commit a086329
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bin/rotten-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ yargs
requiresArg: false,
})
.option('default-expiration', {
description: `sets a default grace period for all dependencies. this cannot be used with a configuration file.
you should specifiy this there instead`,
description: 'sets a default grace period for all dependencies',
type: 'number',
conflicts: 'config-path',
})
.option('progress', {
description: 'displays a progress bar',
Expand Down Expand Up @@ -143,6 +141,7 @@ yargs
new Promise(
(resolve) => {
const parsed = JSON.parse(raw);
if (defaultExpiration) parsed.defaultExpiration = defaultExpiration;
resolve(parsed);
},
);
Expand Down

0 comments on commit a086329

Please sign in to comment.