diff options
| -rw-r--r-- | combox/cbox.py | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/combox/cbox.py b/combox/cbox.py index 52c7546..4424274 100644 --- a/combox/cbox.py +++ b/combox/cbox.py @@ -53,8 +53,10 @@ def run_cb(config):      observer.join() -if __name__ == "__main__": - +def main(): +    """ +    Main functions, parses args and calls run_cb() +    """      parser = ArgumentParser()      parser.add_argument("-t", "--test",                          help="Use the combox config file in testing area.", @@ -80,3 +82,7 @@ if __name__ == "__main__":      # run combox.      run_cb(config) + + +if __name__ == "__main__": +    main() | 
