From 78eb00839b12a3f0ac32f32aff9fffc01280e8b6 Mon Sep 17 00:00:00 2001 From: KDot227 Date: Thu, 25 Apr 2024 18:13:46 -0500 Subject: [PATCH] fix for cmdline args --- src/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index a734f39..248e480 100644 --- a/src/main.py +++ b/src/main.py @@ -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,