How to Manually Print Help Text in `@effect/cli`

In
@effect/cli
, how do I manually print out the Help text?

Here's my case:

const command = Command.make("cli", {}, () =>
  Effect.gen(function*() {
    const helpDoc = Command.getHelp(command, {})
    yield* Console.log(helpDoc) // this is a tree object (Doc I think?)
  })
).pipe(
  Command.withSubcommands([
    commandOne,
    commandTwo,
  ]),
)


Basically, I wanna show the help text if the user doesn't input any of the subcommands, because default behavior is that nothing happens
Was this page helpful?