Skip to content

Commit

Permalink
Fix print-format error
Browse files Browse the repository at this point in the history
  • Loading branch information
shuichiro-makigaki committed Oct 2, 2021
1 parent 4895b50 commit 487917b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mendeley_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ def print_table(dataset: Dataset, print_format):
fmt = print_format
if fmt is None:
fmt = 'cli'
print(dataset.export(fmt, tablefmt='simple'))
if fmt == 'cli':
print(dataset.export(fmt, tablefmt='simple'))
else:
print(dataset.export(fmt))


@click.group(context_settings={'max_content_width': 120})
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='mendeley-cli',
version='0.1.3',
version='0.1.4',
packages=find_packages(),
include_package_data=True,
install_requires=Path('requirements.txt').read_text().splitlines(),
Expand Down

0 comments on commit 487917b

Please sign in to comment.