mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-21 11:27:38 +03:00
Fixed scope whitespace and long lines
This commit is contained in:
parent
8b0f3e74cf
commit
14295ce9e8
9
EDMC.py
9
EDMC.py
@ -65,7 +65,13 @@ def deep_get(target: dict, *args: str, default=None) -> Any:
|
||||
def main():
|
||||
try:
|
||||
# arg parsing
|
||||
parser = argparse.ArgumentParser(prog=appcmdname, description='Prints the current system and station (if docked) to stdout and optionally writes player status, ship locations, ship loadout and/or station data to file. Requires prior setup through the accompanying GUI app.') # noqa:E501
|
||||
parser = argparse.ArgumentParser(
|
||||
prog=appcmdname,
|
||||
description='Prints the current system and station (if docked) to stdout and optionally writes player '
|
||||
'status, ship locations, ship loadout and/or station data to file. '
|
||||
'Requires prior setup through the accompanying GUI app.'
|
||||
)
|
||||
|
||||
parser.add_argument('-v', '--version', help='print program version and exit', action='store_const', const=True)
|
||||
parser.add_argument('-a', metavar='FILE', help='write ship loadout to FILE in Companion API json format')
|
||||
parser.add_argument('-e', metavar='FILE', help='write ship loadout to FILE in E:D Shipyard plain text format')
|
||||
@ -128,6 +134,7 @@ def main():
|
||||
for idx, cmdr in enumerate(cmdrs):
|
||||
if cmdr.lower() == args.p.lower():
|
||||
break
|
||||
|
||||
else:
|
||||
raise companion.CredentialsError()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user