diff --git a/grum/cli.py b/grum/cli.py index a011d4e..e1df4ae 100644 --- a/grum/cli.py +++ b/grum/cli.py @@ -10,9 +10,12 @@ from .mdi import MDIWindowMode def main(): app = QApplication(sys.argv) - theme.apply(app) ctrl_c.setup(app) + clargs = handle_clargs() + if not clargs.pop("no_theme"): + theme.apply(app) + mw = MainWindow(**clargs) mw.show() sys.exit(app.exec()) @@ -25,10 +28,11 @@ def handle_clargs(): parser.add_argument("-H", "--host", default="localhost", help="Server host name") parser.add_argument("-P", "--port", default=8000, type=int, help="Server port number") - parser.add_argument("-e", "--examples", dest="add_examples", action="store_true", help="Add example data") - parser.add_argument("-w", "--window-mode", default="multi", choices=MDIWindowMode.values(), type=unambiguous_window_mode, help="Set the initial window mode") + parser.add_argument("-e", "--examples", dest="add_examples", action="store_true", help="Add example data") + parser.add_argument("--no-theme", action="store_true", help="Disable theming") + return parser.parse_args().__dict__