Effect CommunityEC
Effect Community16mo ago
8 replies
bug

Handling Subcommands and Displaying Help in Command-Line Interface

is it possible to have "subcommands" without a "parent command"?
assuming no, is it possible for the parent command to automatically print help or automatically enter wizard? how could i modify the following to display help?

pipe(
  process.argv,
  Command.run(
    Command.make('cmd', {}, () => Console.log('Try --help or --wizard.')).pipe(Command.withSubcommands([subCommand])),
    { name: 'cmd', version: 'v1.0.0' },
  ),
  ...
`
Was this page helpful?