From 14295ce9e89950a33d62ecc8dbcfb4acce1968ff Mon Sep 17 00:00:00 2001 From: A_D Date: Fri, 24 Jul 2020 12:39:12 +0200 Subject: [PATCH] Fixed scope whitespace and long lines --- EDMC.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/EDMC.py b/EDMC.py index de78ea15..47b276ab 100755 --- a/EDMC.py +++ b/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()