Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,19 @@ async function printUsageAndExit(isError: boolean) {

export function parseArgs(argv: string[]) {
const args = yargs(argv, {
boolean: ['all', 'deref-symlinks', 'junk', 'overwrite', 'prune', 'quiet'],
boolean: [
'all',
'deref-symlinks',
'junk',
'overwrite',
'prune',
'quiet',
'tmpdir',
],
default: {
junk: true,
prune: true,
tmpdir: true,
},
string: ['electron-version', 'out'],
});
Expand Down Expand Up @@ -125,15 +134,6 @@ export function parseArgs(argv: string[]) {
}
}

// tmpdir: `String` or `false`
if (args.tmpdir === 'false') {
warning(
'--tmpdir=false is deprecated, use --no-tmpdir instead',
args.quiet,
);
args.tmpdir = false;
}

return args;
}

Expand Down
Loading