File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 3434import argparse
3535from getpass import getpass
3636from google .protobuf import json_format , text_format
37- from . import ClientBuilder , proto
37+ from . import ClientBuilder , proto , __version__
3838from google .protobuf .internal import enum_type_wrapper
3939import sys
4040
@@ -52,6 +52,8 @@ def main():
5252 usage = """
5353cisco-gnmi <rpc> [<args>]
5454
55+ Version {version}
56+
5557Supported RPCs:
5658{supported_rpcs}
5759
@@ -62,7 +64,8 @@ def main():
6264
6365See <rpc> --help for RPC options.
6466 """ .format (
65- supported_rpcs = "\n " .join (list (rpc_map .keys ()))
67+ version = __version__ ,
68+ supported_rpcs = "\n " .join (sorted (list (rpc_map .keys ())))
6669 ),
6770 )
6871 parser .add_argument ("rpc" , help = "gNMI RPC to perform against network element." )
You can’t perform that action at this time.
0 commit comments