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()