From c2adf38b92e75d73ae66d54ded3ea75a7c964458 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sat, 5 Nov 2016 08:00:47 +0100 Subject: [PATCH] [engine] Remove obsolete Argument class --- bumblebee/engine.py | 69 --------------------------------------------- 1 file changed, 69 deletions(-) diff --git a/bumblebee/engine.py b/bumblebee/engine.py index 922ff70..02cbde1 100644 --- a/bumblebee/engine.py +++ b/bumblebee/engine.py @@ -9,75 +9,6 @@ import bumblebee.theme import bumblebee.output import bumblebee.modules -class Arguments: - def __init__(self): - parser = self.create_parser() - - if len(sys.argv) == 1: - parser.print_help() - parser.exit() - - self._args = parser.parse_args() - - if self._args.list: - self.print_module_list() - self.print_theme_list() - parser.exit() - - def args(self): - return self._args - - def create_parser(self): - parser = argparse.ArgumentParser(description="display system data in the i3bar") - parser.add_argument("-m", "--modules", nargs="+", - help="List of modules to load. The order of the list determines " - "their order in the i3bar (from left to right)", - default=[]) - parser.add_argument("-e", "--events", nargs="+", - help="List of click events that should be handled. Format is: " - "