Typed results
Your CLI definition produces the Roc type your application consumes, including validated values and structured subcommands.
A Roc package for command-line applications
Define options, parameters, and nested subcommands with composable builders. Weaver handles parsing, validation, diagnostics, help, and version output.
Your CLI definition produces the Roc type your application consumes, including validated values and structured subcommands.
Missing options, malformed values, duplicates, and unknown arguments produce focused errors with usage guidance.
Descriptions, defaults, aliases, parameters, and versions stay synchronized with the parser that users actually run.
See each program run in a terminal, then explore the complete highlighted Roc source.
Options, flags, and positional values.
Run and read →A realistic command with validation and repeatable labels.
Run and read →Nested commands with their own arguments.
Run and read →Typed defaults with explicit overrides.
Run and read →A minimal required numeric option.
Run and read →