diff --git a/setup.py b/setup.py index c0649d0..c6461c6 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open('README.md') as file: setup( name="tatt", - version="0.953", + version="0.954", py_modules=['tatt'], url='https://github.com/zevaverbach/tatt', install_requires=[ diff --git a/tatt/transcribe.py b/tatt/transcribe.py index f8462ec..b8ab405 100644 --- a/tatt/transcribe.py +++ b/tatt/transcribe.py @@ -15,11 +15,14 @@ def cli(): @cli.command() @click.option('-s', '--save', is_flag=True, help='save to file') +@click.option('-p', '--pretty', is_flag=True, + help='pretty print, will make output non-pipeable') @click.argument('name') def get(name, save): """Downloads and/or saves completed transcript.""" try: - transcript = json.dumps(helpers.get_transcript(name), indent=4) + transcript = json.dumps(helpers.get_transcript(name), + indent=4 if pretty else None) except exceptions.DoesntExistError: raise click.ClickException(f'no such transcript {name}') except exceptions.NotAvailable as e: