Skip to content

Commit f7aed30

Browse files
committed
feat: add a default summary for optional orgs
1 parent 1f91e32 commit f7aed30

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

messages/messages.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,18 @@ The specified org %s is not a Dev Hub.
4242

4343
Username or alias of the target org. Not required if the `target-org` configuration variable is already set.
4444

45+
# flags.optionalTargetOrg.summary
46+
47+
Username or alias of the target org.
48+
4549
# flags.targetDevHubOrg.summary
4650

4751
Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.
4852

53+
# flags.optionalTargetDevHubOrg.summary
54+
55+
Username or alias of the Dev Hub org.
56+
4957
# flags.apiVersion.description
5058

5159
Override the api version used for api requests made by this command

src/flags/orgFlags.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const optionalOrgFlag = Flags.custom({
102102
char: 'o',
103103
noCacheDefault: true,
104104
parse: async (input: string | undefined) => maybeGetOrg(input),
105+
summary: messages.getMessage('flags.optionalTargetOrg.summary'),
105106
default: async () => maybeGetOrg(),
106107
defaultHelp: async (context) => {
107108
if (context.options instanceof Org) {
@@ -211,7 +212,7 @@ export const requiredHubFlag = Flags.custom({
211212
*/
212213
export const optionalHubFlag = Flags.custom({
213214
char: 'v',
214-
summary: messages.getMessage('flags.targetDevHubOrg.summary'),
215+
summary: messages.getMessage('flags.optionalTargetDevHubOrg.summary'),
215216
noCacheDefault: true,
216217
parse: async (input: string | undefined) => maybeGetHub(input),
217218
default: async () => maybeGetHub(),

0 commit comments

Comments
 (0)