Skip to content

Commit

Permalink
Print file content only in batch or dry-run mode. fix #64 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraymer committed Oct 23, 2016
1 parent 8002c91 commit 32140eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qifqif/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ def main(argv=None):
if not args.get('dry-run', False):
with io.open(args['dest'], 'w', encoding='utf-8') as dest:
dest.write(res)
print(res)
if args.get('batch', False) or args.get('dry-run', False):
print('\n' + res)
return 0 if len(transacs) == len(transacs_orig) else 1

if __name__ == "__main__":
Expand Down

0 comments on commit 32140eb

Please sign in to comment.