![]() By default, clap orders command alphabetically, which can be quite confusing when listing commands with `--help`: ``` SUBCOMMANDS: eval Evaluate an Untyped Plutus Core program flat Encode textual Untyped Plutus Core to flat bytes fmt Format an Untyped Plutus Core program help Print this message or the help of the given subcommand(s) unflat Decode flat bytes to textual Untyped Plutus Cor ``` It is possible to instrument clap to order commands in the same way they are declared in the source, giving us back the freedom to order and group them in a manner that makes sense, e.g.: ``` SUBCOMMANDS: fmt Format an Untyped Plutus Core program eval Evaluate an Untyped Plutus Core program flat Encode textual Untyped Plutus Core to flat bytes unflat Decode flat bytes to textual Untyped Plutus Cor help Print this message or the help of the given subcommand(s) ``` |
||
---|---|---|
.. | ||
cli | ||
flat | ||
lang | ||
project | ||
uplc |