(subparsers)
| 968 | |
| 969 | |
| 970 | def 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 | |
| 988 | def initialize_drpc_subcommand(subparsers): |
no test coverage detected