Skip to content

Commit

Permalink
improve console output
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilo59 committed Apr 23, 2018
1 parent aead356 commit 735d975
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mass_replace/mass_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def mass_replace(root_folder=None, config=None, verbose=False):
valid_files = [f for f in filenames if f.split('.')[-1]
in config['filetypes']]
if verbose:
print('=' * 79)
print('\tCurrent Path - STEP:{}'.format(counter))
pp(dirpath)
print('\tDirectories - STEP:{}'.format(counter))
Expand All @@ -102,7 +103,9 @@ def mass_replace(root_folder=None, config=None, verbose=False):

if __name__ == '__main__':
print(__doc__)
print('*' * 79)
print('discover_filetypes()\n', discover_filetypes.__doc__)
pp(discover_filetypes(hard_copy=True))
print('*' * 79)
print('mass_replace()\n', mass_replace.__doc__)
mass_replace(verbose=True)

0 comments on commit 735d975

Please sign in to comment.