Skip to content

Commit 4288d51

Browse files
committed
fix: add missing —target-org flag summary
@W-12521527@
1 parent fb1d059 commit 4288d51

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

messages/create.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ Number of scratch org auth retries after scratch org is successfully signed up.
6868

6969
Streaming client socket timeout (in minutes).
7070

71+
# flags.targetOrg.summary
72+
73+
Username or alias of the production org that contains the sandbox license.
74+
7175
# scratchOrgCreateSuccess
7276

7377
Successfully created scratch org: %s, username: %s.

src/commands/force/org/create.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@
88
import { Interfaces } from '@oclif/core';
99
import {
1010
Flags,
11-
SfCommand,
11+
loglevel,
12+
optionalHubFlagWithDeprecations,
1213
optionalOrgFlagWithDeprecations,
1314
orgApiVersionFlagWithDeprecations,
1415
parseVarArgs,
15-
optionalHubFlagWithDeprecations,
16-
loglevel,
16+
SfCommand,
1717
} from '@salesforce/sf-plugins-core';
1818
import {
1919
AuthFields,
20-
StateAggregator,
2120
Config,
2221
Lifecycle,
22+
Logger,
2323
Messages,
24-
OrgTypes,
2524
OrgConfigProperties,
25+
OrgTypes,
2626
ResultEvent,
2727
SandboxEvents,
2828
SandboxProcessObject,
2929
SandboxUserAuthResponse,
30-
SfError,
31-
StatusEvent,
3230
ScratchOrgInfo,
3331
ScratchOrgRequest,
34-
Logger,
32+
SfError,
33+
StateAggregator,
34+
StatusEvent,
3535
} from '@salesforce/core';
3636
import { createSandboxRequest } from '../../../shared/sandboxRequest';
3737
import { SandboxReporter } from '../../../shared/sandboxReporter';
@@ -48,6 +48,7 @@ export interface ScratchOrgProcessObject {
4848
}
4949

5050
export type CreateResult = ScratchOrgProcessObject | SandboxProcessObject;
51+
5152
export class Create extends SfCommand<CreateResult> {
5253
public static readonly summary = messages.getMessage('summary');
5354
public static readonly description = messages.getMessage('description');
@@ -63,7 +64,10 @@ export class Create extends SfCommand<CreateResult> {
6364
public static readonly strict = false;
6465

6566
public static readonly flags = {
66-
'target-org': optionalOrgFlagWithDeprecations,
67+
'target-org': {
68+
...optionalOrgFlagWithDeprecations,
69+
summary: messages.getMessage('flags.targetOrg.summary'),
70+
},
6771
'target-dev-hub': optionalHubFlagWithDeprecations,
6872
'api-version': orgApiVersionFlagWithDeprecations,
6973
loglevel,

0 commit comments

Comments
 (0)