diff --git a/src/flags/duration.ts b/src/flags/duration.ts index 7cf1a4a9..1c8ba3c1 100644 --- a/src/flags/duration.ts +++ b/src/flags/duration.ts @@ -48,6 +48,11 @@ export const durationFlag = Flags.custom({ typeof context.options.defaultValue === 'number' ? toDuration(context.options.defaultValue, context.options.unit) : undefined, + // eslint-disable-next-line @typescript-eslint/require-await + defaultHelp: async (context) => + typeof context.options.defaultValue === 'number' + ? toDuration(context.options.defaultValue, context.options.unit).toString() + : undefined, }); const validate = (input: string, config: DurationFlagConfig): Duration => {