scilla icon indicating copy to clipboard operation
scilla copied to clipboard

Use `Cmdliner` to parse CLI in tools

Open jubnzv opened this issue 3 years ago • 2 comments

We could use Cmdliner instead of the manual parsing of CLI argument.

This will allow us to:

  • Add parametrized options more easily.
  • Generate man pages automatically. Here is an example: https://github.com/mtt-lang/mtt-lang/blob/master/man/dune.

But we should keep the current CLI syntax, so that the miners do not have to upgrade their scripts.

jubnzv avatar Aug 19 '22 11:08 jubnzv

Duplicate #1152

jubnzv avatar Aug 19 '22 11:08 jubnzv

We started using Cmdliner for the Scilla formatter scilla-fmt: it looks great, although, it uses double dashe -- for long CLI arguments and the Scilla checker and runner use single dash -.

anton-trunov avatar Sep 13 '22 12:09 anton-trunov