tarides / tezos

Mirror of the release branches for Tezos, a self-amending cryptographic ledger
https://gitlab.com/tezos/tezos
Other
0 stars 2 forks source link

bin_node: add an initial `storage` command #7

Closed craigfe closed 3 years ago

craigfe commented 4 years ago

This adds a tezos-node storage command, with quite a few hacks necessary to get something "like" subcommands via Cmdliner.

Even with these hacks, it's not perfect: this subcommand specification would need to re-state any optional arguments in order to prevent the top-level Term.eval from immediately failing. There are no such optional arguments at the moment, but something to be wary of in the future.

samoht commented 4 years ago

You might be interested by https://github.com/ocaml-dune/cmdliner/tree/nested-commands

icristescu commented 3 years ago

Thanks!