Skip to content

Commit 4211431

Browse files
authoredJun 5, 2024··
fix: fixed options
1 parent 15e08b2 commit 4211431

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ const argv = await yargs(hideBin(process.argv))
3434
.option('cwd', {
3535
alias: ['c', 'cwd'],
3636
string: true,
37-
description: 'Specify manually the DOTENV_KEY to decrypt .env.vault',
37+
description: 'Specify manually the cwd (Current Working Directory)',
3838
})
3939
.help().argv;
4040

4141
// Kill all dotenv logs 🏴‍☠️
4242
console.log = () => null;
4343

4444
const dotenvRun = env({
45-
cwd: process.cwd(),
45+
cwd: argv.cwd ?? process.cwd(),
4646
prefix: argv.prefix,
4747
root: argv.root,
4848
files: argv.files,

0 commit comments

Comments
 (0)
Please sign in to comment.