txcreate, txdo, txbump: minor help screen formatting fixes

This commit is contained in:
The MMGen Project 2025-06-16 14:35:31 +00:00
commit a0094a2eb9
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
5 changed files with 15 additions and 17 deletions

View file

@ -166,9 +166,9 @@ as {r}, using an integer followed by {l}, for{s}{u}""".format(
r = BaseTX(cfg=self.cfg, proto=eth_proto).rel_fee_desc,
l = self.fee_spec_letters(use_quotes=True, proto=eth_proto),
u = self.fee_spec_names(proto=eth_proto, linebreak='\n'))
+ ' (for Ethereum)')
+ ' (for Ethereum)\n\n')
else:
return text + '.'
return text + '.\n\n'
def passwd(self):
return """

View file

@ -41,14 +41,7 @@ cases, the resulting byte string must not exceed {bl} bytes in length.
The transaction output is specified in the form ADDRESS,AMOUNT.
""")
return f"""
The transactions outputs are listed on the command line, while its inputs
are chosen from a list of the wallets unspent outputs via an interactive
menu. Alternatively, inputs may be specified using the --inputs option.
Addresses on the command line can be either native coin addresses or MMGen
IDs in the form SEED_ID:ADDRTYPE_CODE:INDEX.
{outputs_info}
fee_info = """
If the transaction fee is not specified on the command line (see FEE
SPECIFICATION below), it will be calculated dynamically using network fee
estimation for the default (or user-specified) number of confirmations.
@ -56,4 +49,13 @@ If network fee estimation fails, the user will be prompted for a fee.
Network-estimated fees will be multiplied by the value of --fee-adjust, if
specified.
"""
""" if proto.has_usr_fee else ''
return f"""
The transactions outputs are listed on the command line, while its inputs
are chosen from a list of the wallets unspent outputs via an interactive
menu. Alternatively, inputs may be specified using the --inputs option.
Addresses on the command line can be either native coin addresses or MMGen
IDs in the form SEED_ID:ADDRTYPE_CODE:INDEX.
{outputs_info}{fee_info}"""

View file

@ -109,9 +109,7 @@ Internet must be reachable either directly or via the SOCKS5 proxy specified
with the --proxy option. To improve privacy, its recommended to proxy
requests to the quote server via Tor or some other anonymity network.
{g}{F}
{s}
{g}{F}{s}
Seed source files must have the canonical extensions listed in the 'FileExt'
column below:

View file

@ -90,7 +90,7 @@ opts_data = {
-- -y, --yes Answer 'yes' to prompts, suppress non-essential output
e- -X, --cached-balances Use cached balances
""",
'notes': '\n{c}\n{n_at}\n\n{g}{F}\n\n{x}',
'notes': '\n{c}\n{n_at}\n\n{g}{F}{x}',
},
'code': {
'usage': lambda cfg, proto, help_notes, s: s.format(

View file

@ -122,8 +122,6 @@ opts_data = {
{n_at}
{g}{F}
SIGNING NOTES
{s}
Seed source files must have the canonical extensions listed in the 'FileExt'