Skip to content

Commit

Permalink
feat: rename --dotenv to --env-file
Browse files Browse the repository at this point in the history
Add --env-file as an alias for the existing --dotenv flag.

"--dotenv" is a confusing name when saying it out loud (e.g. on
a support call). "--env-file" is more precise and is also used
by Node.js v20 and above:

https://nodejs.org/dist/latest-v20.x/docs/api/cli.html#--env-fileconfig
  • Loading branch information
hassy committed Oct 18, 2024
1 parent ac209b1 commit 58f9085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/artillery/lib/cli/common-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ const CommonRunFlags = {
description: 'Write a JSON report to file'
}),
dotenv: Flags.string({
description: 'Path to a dotenv file to load environment variables from'
description: 'Path to a dotenv file to load environment variables from',
aliases: ['env-file']
}),
variables: Flags.string({
char: 'v',
Expand Down

0 comments on commit 58f9085

Please sign in to comment.