From 0dd42bb04f747b2b40daf36be2cb5c0a0293a558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BF=D0=B8=D1=80=D0=B8=D0=B4=D0=BE=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=94=D0=B5=D0=BD=D0=B8=D1=81?= Date: Thu, 21 Jun 2012 12:44:23 +0400 Subject: [PATCH] fix symlink help --- console/application/cl_client.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/console/application/cl_client.py b/console/application/cl_client.py index 0eb1a45..bff56c5 100644 --- a/console/application/cl_client.py +++ b/console/application/cl_client.py @@ -283,6 +283,11 @@ def main(wait_thread): parser = parse() args, unknown_args = parser.parse_known_args() wait_thread.start() + + if os.path.basename(sys.argv[0]) != 'cl-console': + args.method = '_temp_' + args.host = 'localhost' + if not args.method and args.help: wait_thread.stop() sys.stdout.write('\r') @@ -290,10 +295,6 @@ def main(wait_thread): parser.print_help() return 0 - if os.path.basename(sys.argv[0]) != 'cl-console': - args.method = '_temp_' - args.host = 'localhost' - if not args.method: if unknown_args: wait_thread.stop()