forked from LBRYCommunity/lbry-sdk
sq Learning better coding practices with Lex 2
This commit is contained in:
parent
826d2866fa
commit
0601bf3197
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue