Skip to content

Commit

Permalink
fix for cmdline args
Browse files Browse the repository at this point in the history
  • Loading branch information
KingKDot committed Apr 25, 2024
1 parent a26c867 commit 78eb008
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,13 @@ def get_user_file() -> str:
parse.add_argument(
"-nu", "--no-utf-16-bom", help="No UTF-16 BOM", action="store_true"
)
parse.add_argument(
"-dc", "--double-click-check", help="Double Click Check", action="store_true"
)
args = parse.parse_args()
if any([args.file]):
Settings.utf_16_bom = False
Settings.double_click_check = False
Settings.utf_16_bom = not args.no_utf_16_bom
Settings.double_click_check = args.double_click_check
OBF(
args.file,
double_click_check=Settings.double_click_check,
Expand Down

0 comments on commit 78eb008

Please sign in to comment.