You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Tyler Hobbs (JIRA)" <ji...@apache.org> on 2012/09/09 00:50:07 UTC

[jira] [Updated] (CASSANDRA-4634) cqlsh --color option doesn't allow you to disable colors

     [ https://issues.apache.org/jira/browse/CASSANDRA-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tyler Hobbs updated CASSANDRA-4634:
-----------------------------------

    Attachment: 4634-color-option.txt

Attached patch changes the color option to accept a choice of {{always}}, {{never}}, or {{auto}}, defaulting to {{auto}}, which uses colors if not reading from a file and stdout is connected to a terminal (at least as well as we can detect that).  I based the options off of {{ls}} and {{grep}}, which use the same format.
                
> cqlsh --color option doesn't allow you to disable colors
> --------------------------------------------------------
>
>                 Key: CASSANDRA-4634
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4634
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Drivers
>            Reporter: Tyler Hobbs
>            Assignee: Tyler Hobbs
>            Priority: Trivial
>         Attachments: 4634-color-option.txt
>
>
> There's no way to disable colors with cqlsh, despite it having a {{--color}} option, because that option can only enable color if present, not disable it, and the default is that color is enabled.
> (Incidentally, if the {{--file}} option is used, it will disable color.)

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