diff --git a/README.rst b/README.rst index f616c5c..9f70e9b 100644 --- a/README.rst +++ b/README.rst @@ -11,25 +11,27 @@ As module Print duplicates ^^^^^^^^^^^^^^^^ +.. code:: python from sweeper import file_dups dups = file_dups(['images1', 'images2']) print(dups) Remove duplicate files ^^^^^^^^^^^^^^^^^^^^^^ +.. code:: python from sweeper import file_dups rm_file_dups(['images']) Perform custom action ^^^^^^^^^^^^^^^^^^^^^ + .. code:: python from sweeper import file_dups for files in do_with_file_dups(['images']): for fname in files: print('found duplicte file with name: %s' % fname) As script ---------- - +--------- python sweeper.py --help Installation