We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yargs().env()
This is a small reproducible code:
// example.ts import yargs from "https://deno.land/x/yargs@v17.0.1-deno/deno.ts"; yargs().env().parse([]);
deno run example.ts # uncaught error: permission denied deno run --allow-env example.ts # uncaught error: Object.keys(undefined)
Maybe, that's because env() in deno.ts:12:14 returns nothing and doesn't handle PermissionDenied errors like this:
env()
deno.ts:12:14
PermissionDenied
env: () => { Deno.env.toObject() },
The text was updated successfully, but these errors were encountered:
Can I make PR to fix this?
Sorry, something went wrong.
@MaikuMori I didn't follow this issue but it seems to have been fixed in #432.
No branches or pull requests
This is a small reproducible code:
Maybe, that's because
env()
indeno.ts:12:14
returns nothing and doesn't handlePermissionDenied
errors like this:The text was updated successfully, but these errors were encountered: