mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
fix #744
This commit is contained in:
parent
f635c5110c
commit
1e91c0f254
1 changed files with 6 additions and 2 deletions
8
electrum
8
electrum
|
@ -95,12 +95,14 @@ def print_help(parser):
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
print_msg("Type 'electrum help <command>' to see the help for a specific command")
|
print_msg("Type 'electrum help <command>' to see the help for a specific command")
|
||||||
print_msg("Type 'electrum --help' to see the list of options")
|
print_msg("Type 'electrum --help' to see the list of options")
|
||||||
#run_command(known_commands['help'])
|
run_command(known_commands['help'])
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
|
|
||||||
def print_help_cb(self, opt, value, parser):
|
def print_help_cb(self, opt, value, parser):
|
||||||
print_help(parser)
|
print_help(parser)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def run_command(cmd, password=None, args=None):
|
def run_command(cmd, password=None, args=None):
|
||||||
|
@ -145,6 +147,7 @@ def run_command(cmd, password=None, args=None):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
wallet = None
|
||||||
parser = arg_parser()
|
parser = arg_parser()
|
||||||
options, args = parser.parse_args()
|
options, args = parser.parse_args()
|
||||||
if options.portable and options.wallet_path is None:
|
if options.portable and options.wallet_path is None:
|
||||||
|
@ -363,6 +366,7 @@ if __name__ == '__main__':
|
||||||
elif cmd.name == 'help':
|
elif cmd.name == 'help':
|
||||||
if len(args) < 2:
|
if len(args) < 2:
|
||||||
print_help(parser)
|
print_help(parser)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
# check the number of arguments
|
# check the number of arguments
|
||||||
if len(args) - 1 < cmd.min_args:
|
if len(args) - 1 < cmd.min_args:
|
||||||
|
|
Loading…
Add table
Reference in a new issue