import { Effects } from '@typed/effects' import { info } from '@typed/logger' import { bold, underline } from '../colors' import { ArgParser, ArgsEnv } from './types' export function* showHelp>>( applicationName: string, parsers: A, ): Effects { yield* info(`\n${underline(bold(applicationName))}\n`) for (const { help } of parsers) { const message = yield* help() if (message) { yield* info(message) } } }