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.md
links,setup.py
, andPipfiles
-
Asyncio handling: click issue asyncio, click PR asyncio handling, checks-buildkite-plugin, abot, msbot -
blocks: -
(default=0, show_default=True) show_default
only 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
-
-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
tobalance
-
amount
/balance
: pubkeys separation::
–> -
Rename generate_auth_file
toauthfile
-
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