commit 4f5023e31b059d559db6f2f9b67ef067dd688cd6
parent c263a92351b6957c376873ba43ba2469571426c7
Author: thomasv <thomasv@gitorious>
Date: Fri, 1 Mar 2013 11:33:51 +0100
rename 'balance' command as 'getbalance', per bitcoind
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/electrum b/electrum
@@ -62,7 +62,7 @@ def arg_parser():
parser.add_option("-w", "--wallet", dest="wallet_path", help="wallet path (default: electrum.dat)")
parser.add_option("-o", "--offline", action="store_true", dest="offline", default=False, help="remain offline")
parser.add_option("-a", "--all", action="store_true", dest="show_all", default=False, help="show all addresses")
- parser.add_option("-b", "--balance", action="store_true", dest="show_balance", default=False, help="show the balance at listed addresses")
+ parser.add_option("-b", "--balance", action="store_true", dest="show_balance", default=False, help="show the balance of listed addresses")
parser.add_option("-l", "--labels", action="store_true", dest="show_labels", default=False, help="show the labels of listed addresses")
parser.add_option("-f", "--fee", dest="tx_fee", default="0.005", help="set tx fee")
diff --git a/lib/commands.py b/lib/commands.py
@@ -25,7 +25,7 @@ import bitcoin
known_commands = {
'help':'Prints this help',
'validateaddress':'Check that the address is valid',
- 'balance': "Display the balance of your wallet or of an address.\nSyntax: balance [<address>]",
+ 'getbalance': "Display the balance of your wallet or of an address.\nSyntax: getbalance [<address>]",
'contacts': "Show your list of contacts",
'create':'Create a wallet',
'restore':'Restore a wallet',
@@ -189,7 +189,7 @@ class Commands:
return out
- def balance(self, addresses = []):
+ def getbalance(self, addresses = []):
if addresses == []:
c, u = self.wallet.get_balance()
else: