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 34
34
import argparse
35
35
from getpass import getpass
36
36
from google .protobuf import json_format , text_format
37
- from . import ClientBuilder , proto
37
+ from . import ClientBuilder , proto , __version__
38
38
from google .protobuf .internal import enum_type_wrapper
39
39
import sys
40
40
@@ -52,6 +52,8 @@ def main():
52
52
usage = """
53
53
cisco-gnmi <rpc> [<args>]
54
54
55
+ Version {version}
56
+
55
57
Supported RPCs:
56
58
{supported_rpcs}
57
59
@@ -62,7 +64,8 @@ def main():
62
64
63
65
See <rpc> --help for RPC options.
64
66
""" .format (
65
- supported_rpcs = "\n " .join (list (rpc_map .keys ()))
67
+ version = __version__ ,
68
+ supported_rpcs = "\n " .join (sorted (list (rpc_map .keys ())))
66
69
),
67
70
)
68
71
parser .add_argument ("rpc" , help = "gNMI RPC to perform against network element." )
You can’t perform that action at this time.
0 commit comments