From 40147b7f92b8f371ae357f8d8213a0cf9eb4c3c0 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Mon, 19 Dec 2022 09:05:42 -0600 Subject: [PATCH] fix: required flags use `required` for oclif types --- src/flags/orgFlags.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flags/orgFlags.ts b/src/flags/orgFlags.ts index c28b514b..1faf9c15 100644 --- a/src/flags/orgFlags.ts +++ b/src/flags/orgFlags.ts @@ -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, }); /** @@ -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, });