|
|
|
|
@ -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") |
|
|
|
|
sys.exit(0) |
|
|
|
|
|
|
|
|
|
if cmd.requires_wallet: |
|
|
|
|
wallet = Wallet(storage) |
|
|
|
|
else: |
|
|
|
|
wallet = None |
|
|
|
|
# create wallet instance |
|
|
|
|
wallet = Wallet(storage) if cmd.requires_wallet else None |
|
|
|
|
|
|
|
|
|
# important warning |
|
|
|
|
if cmd.name in ['dumpprivkey', 'dumpprivkeys']: |
|
|
|
|
@ -293,10 +291,9 @@ def run_cmdline(config):
|
|
|
|
|
else: |
|
|
|
|
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)\ |
|
|
|
|
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)) |
|
|
|
|
|
|
|
|
|
# run the command |
|
|
|
|
|