fix: pnpm env should print help
This commit is contained in:
2 files changed
+9
-1
No files matched your search
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-env": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
`pnpm env` should print help.
|
||||
Vendored
+3
-1
@@ -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