mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
parent
4bed49e7e1
commit
8b2809779f
|
@ -2539,6 +2539,10 @@ class LegendaryCLI:
|
|||
|
||||
|
||||
def main():
|
||||
# Set output encoding to UTF-8 if not outputting to a terminal
|
||||
if not stdout.isatty():
|
||||
stdout.reconfigure(encoding='utf-8')
|
||||
|
||||
parser = argparse.ArgumentParser(description=f'Legendary v{__version__} - "{__codename__}"')
|
||||
parser.register('action', 'parsers', HiddenAliasSubparsersAction)
|
||||
|
||||
|
|
Loading…
Reference in a new issue