forked from LBRYCommunity/lbry-sdk
fix
This commit is contained in:
parent
d62ac0b608
commit
94cec1b86d
1 changed files with 3 additions and 3 deletions
|
@ -215,8 +215,10 @@ def main(argv=None):
|
||||||
|
|
||||||
if args.cli_version:
|
if args.cli_version:
|
||||||
print(f"{lbrynet_name} {lbrynet_version}")
|
print(f"{lbrynet_name} {lbrynet_version}")
|
||||||
return 0
|
|
||||||
elif args.command == 'start':
|
elif args.command == 'start':
|
||||||
|
if args.help:
|
||||||
|
args.start_parser.print_help()
|
||||||
|
return 0
|
||||||
try:
|
try:
|
||||||
asyncio.run(start_daemon(conf, args))
|
asyncio.run(start_daemon(conf, args))
|
||||||
except (KeyboardInterrupt, asyncio.CancelledError):
|
except (KeyboardInterrupt, asyncio.CancelledError):
|
||||||
|
@ -237,10 +239,8 @@ def main(argv=None):
|
||||||
asyncio.run(execute_command(conf, api_method_name, params))
|
asyncio.run(execute_command(conf, api_method_name, params))
|
||||||
elif args.group is not None:
|
elif args.group is not None:
|
||||||
args.group_parser.print_help()
|
args.group_parser.print_help()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue