소스 검색

fix help display and password changing

Eren Yilmaz 6 년 전
부모
커밋
36e9b16c1d
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      client_controller.py
  2. 1 1
      run_client.py

+ 0 - 1
client_controller.py

@@ -132,7 +132,6 @@ def help():
         this_module = sys.modules[__name__]
         this_module = sys.modules[__name__]
         method = getattr(this_module, cmd)
         method = getattr(this_module, cmd)
         params = signature(method).parameters
         params = signature(method).parameters
-        num_args = len(params)
         command_table.append([cmd] + [p for p in params])
         command_table.append([cmd] + [p for p in params])
 
 
     print(_my_tabulate(command_table,tablefmt='pipe',headers=['command',
     print(_my_tabulate(command_table,tablefmt='pipe',headers=['command',

+ 1 - 1
run_client.py

@@ -55,7 +55,7 @@ To display an overview of available commands type \'help\'.
 allowed_commands = ['help',
 allowed_commands = ['help',
                     'login',
                     'login',
                     'register',
                     'register',
-                    'change_password',
+                    'change_pw',
                     'depot',
                     'depot',
                     'orders',
                     'orders',
                     'news',
                     'news',