MCPcopy Create free account
hub / github.com/apache/storm / initialize_drpc_client_subcommand

Function initialize_drpc_client_subcommand

bin/storm.py:970–985  ·  view source on GitHub ↗
(subparsers)

Source from the content-addressed store, hash-verified

968
969
970def initialize_drpc_client_subcommand(subparsers):
971 command_help = """
972 Provides a very simple way to send DRPC requests. The server and port are picked from the configs.
973 """
974
975 sub_parser = subparsers.add_parser("drpc-client", help=command_help, formatter_class=SortingHelpFormatter)
976
977 sub_parser.add_argument(
978 "-f", "--function", default=None, help="""If the -f argument is supplied to set the function name all of the arguments are treated
979 as arguments to the function. If no function is given the arguments must
980 be pairs of function argument."""
981 )
982 sub_parser.add_argument("function_arguments", nargs='*', default=[])
983
984 sub_parser.set_defaults(func=drpc_client)
985 add_common_options(sub_parser, main_args=False)
986
987
988def initialize_drpc_subcommand(subparsers):

Callers 1

initialize_main_commandFunction · 0.85

Calls 1

add_common_optionsFunction · 0.85

Tested by

no test coverage detected