rpc: Add alias for rpc_get_methods and fix documentation

Change-Id: I244e40c49c25b4a3346c36b75a658b7fbe25faa1
Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468488
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Pawel Kaminski 2019-09-16 09:51:16 -04:00 committed by Jim Harris
parent 8bc67f2db3
commit 6635453ee6
2 changed files with 3 additions and 2 deletions

View File

@ -239,7 +239,7 @@ Example response:
"id": 1,
"result": [
"start_subsystem_init",
"get_rpc_methods",
"rpc_get_methods",
"get_scsi_devices",
"net_get_interfaces",
"delete_ip_address",

View File

@ -56,7 +56,8 @@ if __name__ == "__main__":
current=args.current,
include_aliases=args.include_aliases))
p = subparsers.add_parser('rpc_get_methods', help='Get list of supported RPC methods', aliases=['get_rpc_methods'])
p = subparsers.add_parser('rpc_get_methods', aliases=['get_rpc_methods'],
help='Get list of supported RPC methods')
p.add_argument('-c', '--current', help='Get list of RPC methods only callable in the current state.', action='store_true')
p.add_argument('-i', '--include-aliases', help='include RPC aliases', action='store_true')
p.set_defaults(func=rpc_get_methods)