From f09e1a80a20b31bcf1e1f488a9ddd7c598b361a3 Mon Sep 17 00:00:00 2001
From: Robert Habermann <mail@rhab.de>
Date: Sun, 17 Apr 2016 19:35:32 +0200
Subject: [PATCH] clean up cli

---
 cli/PyOTRS.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/cli/PyOTRS.py b/cli/PyOTRS.py
index 41ec8a9..87c1757 100644
--- a/cli/PyOTRS.py
+++ b/cli/PyOTRS.py
@@ -12,13 +12,18 @@ CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
 
 
 def load_config(config_file):
-    """ load config from file and export to environment """
+    """ load config from file and export to environment
+
+    Args:
+        config_file (str): absolute path of config file
+
+    """
 
     try:
         if not oct(stat.S_IMODE(os.stat(config_file).st_mode)) == "0600":
             raise Exception("Permissions to %s too open. Should be 0600!" % config_file)
     except OSError:
-        # non existent file can not be check for permission; that's fine -> pass
+        # non existent file can not be checked for permissions; that's fine -> pass
         pass
 
     try:
@@ -85,10 +90,5 @@ def get(baseurl=None, webservicename=None, username=None, password=None, ticket_
     click.secho("State: \t\t%s" % ticket['State'])
     click.secho("Priority: \t%s" % ticket['Priority'])
 
-    print("\n")
+    click.secho("Raw Ticket: \n")
     print(ticket)
-
-# TODO 2016-04-17 (RH): needed?!
-if __name__ == '__main__':
-    click.secho("Starting PyOTRS Main")
-    cli()
-- 
GitLab