[ 
https://issues.apache.org/jira/browse/CASSANDRA-9430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15177751#comment-15177751
 ] 

Pavel Trukhanov commented on CASSANDRA-9430:
--------------------------------------------

Maybe it would be better (and solve all future requests for improvements like 
this one)  to add and "interactive mode" flag like there's in python etc.

Here're quotes from python and ipython usage help for this mode:

{quote}
If running code from the command line, become interactive afterwards.
{quote}

{quote}
inspect interactively after running script;
{quote}

So for example it'd work like this:
{code}
echo "paging off;" | cqlsh -i 
{code}
and would be prefectly combinable with 
{code}
-f FILE, --file=FILE  Execute commands from FILE
{code}
but without exiting afterwards

> Add startup options to cqlshrc
> ------------------------------
>
>                 Key: CASSANDRA-9430
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9430
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Jeremy Hanna
>            Priority: Minor
>              Labels: cqlsh, lhf
>
> There are certain settings that would be nice to set defaults for in the 
> cqlshrc file.  For example, a user may want to set the paging to off by 
> default for their environment.  You can't simply do
> {code}
> echo "paging off;" | cqlsh
> {code}
> because this would disable paging and immediately exit cqlsh.
> So it would be nice to have a section of the cqlshrc to include default 
> settings on startup.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to