scripts/rpc: Add abbreviated option '-f' to load_subsystem_config

'-f' is simpler and easier to use than '--filename'.

Change-Id: Iff31f772ff1034674473a495bff1e73c3328398d
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/416304
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Shuhei Matsumoto 2018-06-21 11:08:24 +09:00 committed by Ben Walker
parent 361cd02264
commit 3dd57d27af

View File

@ -81,7 +81,7 @@ if __name__ == "__main__":
p = subparsers.add_parser('load_subsystem_config', help="""Configure SPDK subsystem using JSON RPC. If no file is
provided or file is '-' read configuration from stdin.""")
p.add_argument('--filename', help="""JSON Configuration file.""")
p.add_argument('-f', '--filename', help="""JSON Configuration file.""")
p.set_defaults(func=load_subsystem_config)
# app