diff --git a/CHANGES.txt b/CHANGES.txt index f8653d73ed..0f9a2e69f3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 4.1 + * add the shorter version of version flag (-v) in cqlsh (CASSANDRA-17236) * Make vtables accessible via internode messaging (CASSANDRA-17295) * Add support for PEM based key material for SSL (CASSANDRA-17031) * Standardize storage configuration parameters' names. Support unit suffixes. (CASSANDRA-15234) diff --git a/bin/cqlsh.py b/bin/cqlsh.py index 2406b05c71..dd3c705a68 100755 --- a/bin/cqlsh.py +++ b/bin/cqlsh.py @@ -222,6 +222,7 @@ parser.add_option("--request-timeout", default=DEFAULT_REQUEST_TIMEOUT_SECONDS, help='Specify the default request timeout in seconds (default: %default seconds).') parser.add_option("-t", "--tty", action='store_true', dest='tty', help='Force tty mode (command prompt).') +parser.add_option('-v', action="version", help='Print the current version of cqlsh.') # This is a hidden option to suppress the warning when the -p/--password command line option is used. # Power users may use this option if they know no other people has access to the system where cqlsh is run or don't care about security.