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.
The former
main()
function is now part of the newRenamer
class, which keeps the formerly global state for dry runs ("simulate"). The newmain()
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.