1
0

commands: extract params and options from arguments

This commit is contained in:
ThomasV
2015-05-31 22:42:34 +02:00
parent 1d5c6bdc2d
commit ddd6a58cc7
2 changed files with 402 additions and 397 deletions

View File

@@ -21,7 +21,6 @@ from decimal import Decimal
import json
import os
import re
import ast
import sys
import time
import traceback
@@ -322,20 +321,6 @@ def run_cmdline(config):
else:
print_msg("Action canceled.")
elif cmd.name == 'getconfig':
key = args[0]
out = config.get(key)
print_msg(out)
elif cmd.name == 'setconfig':
key, value = args[0:2]
try:
value = ast.literal_eval(value)
except:
pass
config.set_key(key, value, True)
print_msg(True)
elif cmd.name == 'password':
new_password = prompt_password('New password:')
wallet.update_password(password, new_password)