import os import sys import glob import pkgutil import textwrap import argparse import threading import importlib import bumblebee.theme 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: