Skip to content

Commit 778b3a0

Browse files
authored
Merge pull request #3 from FnuGk/fix-default-argv-cwd
Fix such that undefined argv.cwd does not get converted to the string "undefined"
2 parents 62ffc4e + dce2b45 commit 778b3a0

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)