From 1f440673a877a58f51ebf220743ccca4b714627c Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Fri, 4 Nov 2016 18:56:45 +0100 Subject: [PATCH] [main] Small refactoring Put some functionality into separate methods for better legibility. --- i3bumblebee | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/i3bumblebee b/i3bumblebee index 7070fc0..d5e12da 100755 --- a/i3bumblebee +++ b/i3bumblebee @@ -40,7 +40,7 @@ def print_theme_list(): 80, initial_indent = " ", subsequent_indent = " " ) -def main(): +def init_argument_parser(): 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: