minor formatting
This commit is contained in:
9
electrum
9
electrum
@@ -245,10 +245,8 @@ def run_cmdline(config):
|
|||||||
print_msg("Type 'electrum create' to create a new wallet, or provide a path to a wallet with the -w option")
|
print_msg("Type 'electrum create' to create a new wallet, or provide a path to a wallet with the -w option")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if cmd.requires_wallet:
|
# create wallet instance
|
||||||
wallet = Wallet(storage)
|
wallet = Wallet(storage) if cmd.requires_wallet else None
|
||||||
else:
|
|
||||||
wallet = None
|
|
||||||
|
|
||||||
# important warning
|
# important warning
|
||||||
if cmd.name in ['dumpprivkey', 'dumpprivkeys']:
|
if cmd.name in ['dumpprivkey', 'dumpprivkeys']:
|
||||||
@@ -293,10 +291,9 @@ def run_cmdline(config):
|
|||||||
else:
|
else:
|
||||||
network = None
|
network = None
|
||||||
|
|
||||||
# add missing arguments, do type conversions
|
# See if they specificed a key on the cmd line, if not prompt
|
||||||
if (cmd.name == 'importprivkey' and len(args)==1)\
|
if (cmd.name == 'importprivkey' and len(args)==1)\
|
||||||
or (cmd.name == 'signtxwithkey' and len(args)==2):
|
or (cmd.name == 'signtxwithkey' and len(args)==2):
|
||||||
# See if they specificed a key on the cmd line, if not prompt
|
|
||||||
args.append(prompt_password('Enter PrivateKey (will not echo):', False))
|
args.append(prompt_password('Enter PrivateKey (will not echo):', False))
|
||||||
|
|
||||||
# run the command
|
# run the command
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ class Commands:
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def help(self):
|
def help(self):
|
||||||
return sorted(known_commands.keys())
|
return 'Commands: ' + ', '.join(sorted(known_commands.keys()))
|
||||||
|
|
||||||
def make_seed(self, nbits, custom_entropy, language):
|
def make_seed(self, nbits, custom_entropy, language):
|
||||||
from mnemonic import Mnemonic
|
from mnemonic import Mnemonic
|
||||||
|
|||||||
Reference in New Issue
Block a user