Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE45FF4CF for ; Tue, 9 Jul 2013 02:17:49 +0000 (UTC) Received: (qmail 52457 invoked by uid 500); 9 Jul 2013 02:17:49 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 52417 invoked by uid 500); 9 Jul 2013 02:17:49 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 52335 invoked by uid 99); 9 Jul 2013 02:17:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 02:17:49 +0000 Date: Tue, 9 Jul 2013 02:17:49 +0000 (UTC) From: "Manoj Mainali (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-5734) Print usage when command is not specified in nodetool instead of connection failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Manoj Mainali created CASSANDRA-5734: ---------------------------------------- Summary: Print usage when command is not specified in nodetool instead of connection failure Key: CASSANDRA-5734 URL: https://issues.apache.org/jira/browse/CASSANDRA-5734 Project: Cassandra Issue Type: Improvement Affects Versions: 1.2.6 Reporter: Manoj Mainali Priority: Minor nodetool command tries to establish connection to the cassandra node before ensuring that the command is valid. Therefore, when no command is specified it will print {noformat} $ bin/nodetool Failed to connect to '127.0.0.1:7199': Connection refused {noformat} That means we need to have a running instance of C* to check the available commands. But this is a syntax error and usage can be displayed (which is the result even if a C* is running) even without a C* instance. Probably, it would be better to make sure that the command sytnax is valid and print usage if not. By doing this, we can easily check the available commands. Additionally, same should apply for the help command. Since, help will not be connecting to the C* instance, we should not have a dependency on a running C*. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira