From f6169d399f79168cbc3580d95082b0e2a99db048 Mon Sep 17 00:00:00 2001 From: Yash Ladha Date: Sat, 5 Feb 2022 11:19:15 +0530 Subject: [PATCH] add the shorter version of version flag (-v) in cqlsh patch by Yash Ladha; reviewed by Brandon Williams and Stefan Miklosovic for CASSANDRA-17236 --- CHANGES.txt | 1 + bin/cqlsh.py | 1 + 2 files changed, 2 insertions(+) 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.