add the shorter version of version flag (-v) in cqlsh

patch by Yash Ladha; reviewed by Brandon Williams and Stefan Miklosovic for CASSANDRA-17236
This commit is contained in:
Yash Ladha 2022-02-05 11:19:15 +05:30 committed by Stefan Miklosovic
parent 6d7b0a1079
commit f6169d399f
2 changed files with 2 additions and 0 deletions

View File

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

View File

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