This commit is contained in:
@@ -1,9 +1,23 @@
|
||||
"""
|
||||
@file main.py
|
||||
@brief Command-line interface for OMG-Fuscator.
|
||||
@details Parses CLI arguments, runs obfuscation via AdvancedObfuscator, and prints or writes output.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from obfuscator import AdvancedObfuscator
|
||||
|
||||
def main():
|
||||
"""
|
||||
@brief CLI entrypoint.
|
||||
@details Handles --test demo, reads input file, runs obfuscator, and writes output.
|
||||
@arg -i, --input Path to input .py file (required unless --test).
|
||||
@arg -o, --output Output file path (default: input_stem_obfuscated.py).
|
||||
@arg -v, --verbose Verbose console logging.
|
||||
@arg --test Run built-in demo instead of file-based obfuscation.
|
||||
"""
|
||||
parser = argparse.ArgumentParser(description="OMG-Fuscator: Advanced Python Code Obfuscator")
|
||||
parser.add_argument("-i", "--input", type=str, help="Input Python file path")
|
||||
parser.add_argument("-o", "--output", type=str, help="Output file path (default: input_obfuscated.py)")
|
||||
|
||||
Reference in New Issue
Block a user