Skip to content

Migrate command line tool from commandline to Click

Migrating to https://github.com/pallets/click as Debian Buster does not include python3-commandlines.

Choosed python3-click which is very popular and seems a good tool from my point of view.

Migration steps

Breaking changes

  • two sub-commands not possible for the same no longer possible
    • Removal of long sub-commands certification, transaction, network, identities
  • -h only works on the program name but no longer for sub-commands
  • remove usage command which can now be found with --help
  • Scrpyt parameters: -n, -r, -p to --nrp 4096,16,1
  • blocks:
    • --nbr/-n option Debian 0.6.5, as an argument in 0.7 (and 0 as default value)
    • option name: --last —> --detailed/-d
  • Position of global options before sub-cmd: --gtest, --peer, --auth-*
  • #167 (closed): rename amount to balance
  • amount/balance: pubkeys separation: : –> (space)
  • Rename generate_auth_file to authfile
  • Add smaller option for --auth-*: --scrypt, -af, --seed, --wif

Fixes

#123 (closed), #117 (closed), #76 (closed), #67 (closed)

To be done for the announcement

  • Explain breaking changes in v0.7 announcement
Edited by Moul
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information