changeset 36:7b4e436a3115

Client: Show help if --help is supplied.
author Lewin Bormann <lbo@spheniscida.de>
date Thu, 14 Mar 2019 17:44:50 +0100
parents 021270e3c3f9
children e87e121fe55c
files client/client.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/client/client.py	Sun Mar 10 16:50:25 2019 +0100
+++ b/client/client.py	Thu Mar 14 17:44:50 2019 +0100
@@ -518,6 +518,7 @@
 
     Options
         --defaults      Use cached defaults if available.
+        --help          Show help.
     """
 
     creds = Creds()
@@ -531,6 +532,10 @@
         super(wid.QWidget, self).__init__()
         wid.QWidget.setMinimumSize(self, 1000, 700)
         super(arguments.BaseArguments, self).__init__(doc=self._doc)
+        
+        if self.help is not None:
+            print(self._doc)
+            exit(0)
 
         self.depot_widget = DepotWidget(self.depot)
         self.depot.cash = 1000000