crystal-cat / exif_rename

A tool for batch renaming image files based on their (creation) date
GNU General Public License v3.0
0 stars 0 forks source link

Restructure main control flow #22

Closed airtower-luna closed 4 years ago

airtower-luna commented 4 years ago

The former main() function is now part of the new Renamer class, which keeps the formerly global state for dry runs ("simulate"). The new main() function does basically everything that used to be part of the part after the __main__ guard.

This makes it possible to call main() with what would be command line parameters, which is useful for tests without starting a new interpreter.

Closes #18.

Note that the branch builds on the commits in #21, so this should be merged after it.