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] [container]", in rv_list()
48 " -h/--help: print this menu", in rv_list()
57 if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { in rv_list()
60 } else if (argv[1][0] == '-') { in rv_list()
84 * rv_mon - try to run a monitor passed as argument
93 " usage: rv mon [-h] monitor [monitor options]", in rv_mon()
97 " -h/--help: print this menu", in rv_mon()
112 } else if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { in rv_mon()
126 run += ikm_run_monitor(monitor_name, argc-1, &argv[1]); in rv_mon()
135 char message[1024]; in usage() local
141 " usage: rv command [-h] [command_options]", in usage()
143 " -h/--help: print this menu", in usage()
150 " run rv command -h for further information", in usage()
155 vsnprintf(message, sizeof(message), fmt, ap); in usage()
158 fprintf(stderr, "rv version %s: %s\n", VERSION, message); in usage()
167 * main - select which main sending the command
169 * main itself redirects the arguments to the sub-commands
182 if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) in main()
186 rv_list(--argc, &argv[1]); in main()
195 rv_mon(argc - 1, &argv[1]); in main()
198 /* invalid sub-command */ in main()