Drum-Track-Converter/src/cli.py
2025-03-22 12:03:34 -05:00

19 lines
672 B
Python

import sys
from src.messaging import CliOutput
from src.processor import FolderProcessor
if __name__ == "__main__":
output = CliOutput()
if len(sys.argv) == 3:
processor = FolderProcessor(sys.argv[1], sys.argv[2], output)
processor.process_directory()
else:
warning_str = [
"The CLI utility requires exactly two parameters:",
" • input [str] -- The directory to scan through",
" • output [str] -- The directory to output through, keeping the input directory's file structure.",
" (This directory will be made if necessary)",
]
output.error("\n".join(warning_str))