mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-09 16:38:11 -04:00
fix: pnpm env should print help
This commit is contained in:
6
.changeset/good-turtles-perform.md
Normal file
6
.changeset/good-turtles-perform.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-env": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
`pnpm env` should print help.
|
||||
4
env/plugin-commands-env/src/env.ts
vendored
4
env/plugin-commands-env/src/env.ts
vendored
@@ -83,7 +83,9 @@ export function help () {
|
||||
|
||||
export async function handler (opts: NvmNodeCommandOptions, params: string[]) {
|
||||
if (params.length === 0) {
|
||||
throw new PnpmError('ENV_NO_SUBCOMMAND', 'Please specify the subcommand')
|
||||
throw new PnpmError('ENV_NO_SUBCOMMAND', 'Please specify the subcommand', {
|
||||
hint: help(),
|
||||
})
|
||||
}
|
||||
switch (params[0]) {
|
||||
case 'use': {
|
||||
|
||||
Reference in New Issue
Block a user