Skip to content

Modify the cli

This is a breaking change (the old cli will still work exactly the same way)

This MR move the cli library from Cmdliner to Tezos-cli. Doing so, there is a few change to be aware of

  • The command have change and follow the following groups :
  compile
     contract
     parameter
     storage
     expression
  transpile
     contract
     expression

  mutate
     cst
     ast 
  run
     test ;
     dry_run ;
     function
    evaluate_value
  repl
  info
     measure_contract ;
     interpret ;
     list_declarations ;
     get_scope;
  dump_changelog
  print
     pretty_print
     dependency-graph
     preprocessed
     cst
     ast_imperative
     ast_sugar
     ast_core
     ast_typed
     ast_combined
     mini_c

we now write "ligo compile contract" instead of "ligo compile-contract"

  • Entry_point is now an optional argument that default to "main"
  • Optional agument has to be written as "--arg " or "-a ", "--arg=" is invalid.
  • Due to limitation with our version of Tezos_clic (8.4), all optional argument have to be at the end of the command, after the positional mandatory argument
  • has a changelog entry
Edited by Pierre-Emmanuel Wulfman

Merge request reports

Loading