Lines Matching +full:sub +full:- +full:message
1 // SPDX-License-Identifier: GPL-2.0
4 * user-space controlled monitors.
20 * stop_rv - tell monitors to stop
28 * should_stop - check if the monitor should stop.
38 * rv_list - list all available monitors
44 " usage: rv list [-h]", in rv_list()
48 " -h/--help: print this menu", in rv_list()
60 /* but only -h is valid */ in rv_list()
61 if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) in rv_list()
72 * rv_mon - try to run a monitor passed as argument
81 " usage: rv mon [-h] monitor [monitor options]", in rv_mon()
85 " -h/--help: print this menu", in rv_mon()
100 } else if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { in rv_mon()
114 run += ikm_run_monitor(monitor_name, argc-1, &argv[1]); in rv_mon()
123 char message[1024]; in usage() local
129 " usage: rv command [-h] [command_options]", in usage()
131 " -h/--help: print this menu", in usage()
138 " run rv command -h for further information", in usage()
143 vsnprintf(message, sizeof(message), fmt, ap); in usage()
146 fprintf(stderr, "rv version %s: %s\n", VERSION, message); in usage()
155 * main - select which main sending the command
157 * main itself redirects the arguments to the sub-commands
170 if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) in main()
174 rv_list(--argc, &argv[1]); in main()
183 rv_mon(argc - 1, &argv[1]); in main()
186 /* invalid sub-command */ in main()