Skip to content

Commit dce2b45

Browse files
committed
Fix such that undefined argv.cwd does not get converted to the string "undefined"
1 parent 62ffc4e commit dce2b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const makeid = (length: number): string => {
3232
};
3333

3434
const argv = yargs.argv;
35-
const cwd = String(argv.cwd) || process.cwd();
35+
const cwd = String(argv.cwd || process.cwd());
3636
const m: any = argv.m;
3737
const manualArgs: string[] = [].concat(m || []);
3838

0 commit comments

Comments
 (0)