mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 11:33:25 +00:00
feat: Refactor main.py into renamer directory and update script entry point in pyproject.toml
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import argparse
|
||||
from renamer.app import RenamerApp
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Media file renamer")
|
||||
parser.add_argument("directory", nargs="?", default=".", help="Directory to scan")
|
||||
args = parser.parse_args()
|
||||
app = RenamerApp(args.directory)
|
||||
app.run()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user