Skip to content

Commit

Permalink
fix: required flags use required for oclif types
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Dec 19, 2022
1 parent 0c3ae98 commit 40147b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flags/orgFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const requiredOrgFlag = Flags.custom({
parse: async (input: string | undefined) => getOrgOrThrow(input),
default: async () => getOrgOrThrow(),
defaultHelp: async () => (await getOrgOrThrow())?.getUsername(),
required: true,
});

/**
Expand Down Expand Up @@ -131,4 +132,5 @@ export const requiredHubFlag = Flags.custom({
parse: async (input: string | undefined) => getHubOrThrow(input),
default: async () => getHubOrThrow(),
defaultHelp: async () => (await getHubOrThrow())?.getUsername(),
required: true,
});

0 comments on commit 40147b7

Please sign in to comment.