From 11fc3ccf3340cd1d706413cd6ba5556384068602 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 29 May 2025 16:44:01 +0200 Subject: [PATCH] CLI: cosmetic changes and cleanup --- electrum/commands.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/electrum/commands.py b/electrum/commands.py index 32b89ff06..b857db438 100644 --- a/electrum/commands.py +++ b/electrum/commands.py @@ -547,10 +547,10 @@ class Commands(Logger): @command('') async def signtransaction_with_privkey(self, tx, privkey): - """Sign a transaction. The provided list of private keys will be used to sign the transaction. + """Sign a transaction with private keys passed as parameter. arg:tx:tx:Transaction to sign - arg:str:privkey:private key + arg:str:privkey:private key or list of private keys """ tx = tx_from_any(tx) @@ -576,7 +576,7 @@ class Commands(Logger): @command('wp') async def signtransaction(self, tx, password=None, wallet: Abstract_Wallet = None, ignore_warnings: bool=False): """ - Sign a transaction. The wallet keys will be used to sign the transaction. + Sign a transaction with the current wallet. arg:tx:tx:transaction arg:bool:ignore_warnings:ignore warnings @@ -1122,7 +1122,7 @@ class Commands(Logger): return wallet.contacts @command('w') - async def getalias(self, key, wallet: Abstract_Wallet = None): + async def getopenalias(self, key, wallet: Abstract_Wallet = None): """ Retrieve alias. Lookup in your list of contacts, and for an OpenAlias DNS record. @@ -1251,11 +1251,6 @@ class Commands(Logger): raise UserFacingException("Request not found") return wallet.export_invoice(r) - #@command('w') - #async def ackrequest(self, serialized): - # """""" - # pass - def _filter_invoices(self, _list, wallet, pending, expired, paid): if pending: f = PR_UNPAID @@ -1480,6 +1475,7 @@ class Commands(Logger): @command('') async def help(self): + """Show help about a command""" # for the python console return sorted(known_commands.keys())