From 9449f96345ef61dd1a236eb195ca32029596ab4b Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 23 Apr 2020 07:09:13 +0200 Subject: [PATCH] only run gui if requested with --gui even on windows (closes: #73) --- src/img2pdf.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/img2pdf.py b/src/img2pdf.py index 0ce4378..6288f85 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -3084,23 +3084,12 @@ Report bugs at https://gitlab.mister-muffin.de/josch/img2pdf/issues version="%(prog)s " + __version__, help="Prints version information and exits.", ) - gui_group = parser.add_mutually_exclusive_group(required=False) - gui_group.add_argument( + parser.add_argument( "--gui", dest="gui", action="store_true", - help="run tkinter gui (default on Windows)", + help="run experimental tkinter gui", ) - gui_group.add_argument( - "--nogui", - dest="gui", - action="store_false", - help="don't run tkinter gui (default elsewhere)", - ) - if platform.system() == "Windows": - parser.set_defaults(gui=True) - else: - parser.set_defaults(gui=False) outargs = parser.add_argument_group( title="General output arguments",