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.
- commandline is not very maintained
- Migrate to Click
- Pipenv implementation to get some inspiration
Migration steps
-
Dependencies updates: rm commandlines, add click: Update README.mdlinks,setup.py, andPipfiles -
Asyncio handling: click issue asyncio, click PR asyncio handling, checks-buildkite-plugin, abot, msbot -
blocks: -
(default=0, show_default=True) show_defaultonly available for the option. -
blocks: IntRange(min 0, max 5.000 BMA limit)
-
-
tx: #131 (closed): FloatRange(min 0.01 for Ğ1, Ğ1-test?) -
implement -h(only works on root, not for sub-cmd) and-v
Breaking changes
-
two sub-commands not possible for the same no longer possible - Removal of long sub-commands
certification,transaction,network,identities
- Removal of long sub-commands
-
-honly works on the program name but no longer for sub-commands -
remove usagecommand which can now be found with--help -
Scrpyt parameters: -n,-r,-pto--nrp 4096,16,1 -
blocks:-
--nbr/-noption 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 amounttobalance -
amount/balance: pubkeys separation::–>(space) -
Rename generate_auth_filetoauthfile -
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