Skip to content

Commit

Permalink
fix: use -o for target-org
Browse files Browse the repository at this point in the history
BREAKING CHANGES: requiredOrgFlag and optionalOrgFlag previously defaulted to char: e
  • Loading branch information
mshanemc committed Nov 16, 2022
1 parent 449b1cf commit 1706d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flags/orgFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const getHubOrThrow = async (aliasOrUsername?: string): Promise<Org> => {
* ```
*/
export const optionalOrgFlag = Flags.custom({
char: 'e',
char: 'o',
parse: async (input: string | undefined) => maybeGetOrg(input),
default: async () => maybeGetOrg(),
defaultHelp: async () => (await maybeGetOrg())?.getUsername(),
Expand Down Expand Up @@ -96,7 +96,7 @@ export const optionalOrgFlag = Flags.custom({
* ```
*/
export const requiredOrgFlag = Flags.custom({
char: 'e',
char: 'o',
parse: async (input: string | undefined) => getOrgOrThrow(input),
default: async () => getOrgOrThrow(),
defaultHelp: async () => (await getOrgOrThrow())?.getUsername(),
Expand Down

0 comments on commit 1706d9c

Please sign in to comment.