Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 56503 invoked from network); 18 Jan 2011 15:07:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jan 2011 15:07:12 -0000 Received: (qmail 95997 invoked by uid 500); 18 Jan 2011 15:07:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 95894 invoked by uid 500); 18 Jan 2011 15:07:09 -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 95878 invoked by uid 99); 18 Jan 2011 15:07:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 15:07:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 15:07:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0IF6iVG008545 for ; Tue, 18 Jan 2011 15:06:44 GMT Message-ID: <19177367.37201295363204233.JavaMail.jira@thor> Date: Tue, 18 Jan 2011 10:06:44 -0500 (EST) From: "Christoph Hack (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Updated: (CASSANDRA-1565) cassandra-cli use consistant flags and improve error messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-1565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christoph Hack updated CASSANDRA-1565: -------------------------------------- Attachment: trunk-1565.txt Update which makes the cassandra-cli command line options more consistent with other tools (nodetool). In addition to the previous long option names, shorter ones are provided for common options and additional error handling (e.g. for additional non-recognized options or arguments) was added. > cassandra-cli use consistant flags and improve error messages > ------------------------------------------------------------- > > Key: CASSANDRA-1565 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1565 > Project: Cassandra > Issue Type: Improvement > Components: Tools > Affects Versions: 0.7 beta 1 > Environment: Centos 5 using http://mirror.lividpenguin.com/pub/apache//cassandra/0.7.0/apache-cassandra-0.7.0-beta1-bin.tar.gz > Reporter: Ian Rogers > Priority: Minor > Attachments: trunk-1565.txt > > > nodetool uses "-h" to specify the host to connect to but cassandra-cli uses "-host" which is a pain to remember. > More importantly, if you do use "-h" then there's no error! If you do this and then try to "show keyspaces" or some such you just get an entirely accurate though confusing "not connected to a cluster" error. > 1. Make the flags consistant amongst all the tools where appropriate. > 2. If you supply a flag to a tool it doesn't recognise then the tool should error immediately and display its usage message. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.