From 0601bf31976825f9baa2833d6e6ab7d51176eb5c Mon Sep 17 00:00:00 2001 From: hackrush Date: Fri, 27 Jul 2018 17:59:22 +0530 Subject: [PATCH] sq Learning better coding practices with Lex 2 --- lbrynet/cli.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lbrynet/cli.py b/lbrynet/cli.py index 03e01c770..f2dd2fbea 100644 --- a/lbrynet/cli.py +++ b/lbrynet/cli.py @@ -42,10 +42,6 @@ def print_help_for_command(command): print("Invalid command name") -def get_version(): - print(json.dumps(get_platform(get_ip=False), sort_keys=True, indent=4, separators=(',', ': '))) - - def guess_type(x, key=None): if not isinstance(x, str): return x @@ -102,7 +98,8 @@ def main(argv=None): print_help() elif method in ['version', '--version', '-v']: - get_version() + print(json.dumps(get_platform(get_ip=False), sort_keys=True, indent=4, separators=(',', ': '))) + elif method == 'start': start(args)