fix: the help of the run command should list --resume-from

This commit is contained in:
Zoltan Kochan
2023-01-04 03:31:06 +02:00
parent 2895389ae1
commit 640f4666c7
3 changed files with 14 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/plugin-commands-script-runners": patch
"pnpm": patch
---
The help of the run command should list the `--resume-from` option.

View File

@@ -14,6 +14,7 @@ import { existsInDir } from './existsInDir'
import { makeEnv } from './makeEnv'
import {
PARALLEL_OPTION_HELP,
RESUME_FROM_OPTION_HELP,
shorthands as runShorthands,
} from './run'
import { PnpmError } from '@pnpm/error'
@@ -68,10 +69,7 @@ The shell should understand the -c switch on UNIX or /d /s /c on Windows.',
name: '--shell-mode',
shortAlias: '-c',
},
{
description: 'command executed from given package',
name: '--resume-from',
},
RESUME_FROM_OPTION_HELP,
],
},
],

View File

@@ -38,6 +38,11 @@ for long-running processes such as watch run over many packages.',
name: '--parallel',
}
export const RESUME_FROM_OPTION_HELP = {
description: 'Command executed from given package',
name: '--resume-from',
}
export const shorthands = {
parallel: [
'--workspace-concurrency=Infinity',
@@ -105,6 +110,7 @@ For options that may be used with `-r`, see "pnpm help recursive"',
},
IF_PRESENT_OPTION_HELP,
PARALLEL_OPTION_HELP,
RESUME_FROM_OPTION_HELP,
...UNIVERSAL_OPTIONS,
],
},