" try %s -h' for more information.\n",
program_name);
} else {
- printf("usage is %s "
- "[-g <list of controllers>:<relative path to cgroup>] "
- "[--sticky | --cancel-sticky] <list of pids> \n",
+ printf("usage is %s"\
+ "[-g <controllers>:<path>]"
+ "[--sticky | --cancel-sticky] <list of pids>\n",
program_name);
}
}
{
printf("Usage: %s [-h] [-f mode] [-d mode] [-s mode] "\
"[-t <tuid>:<tgid>] [-a <agid>:<auid>] "\
- "[-l FILE] [-L directory] ...\n", basename(progname));
+ "[-l FILE] [-L DIR] ...\n", basename(progname));
printf("Parse and load the specified cgroups configuration file\n");
printf("\n");
printf(" -h, --help Display this help\n");
" permissions\n");
printf(" -f, --fperm=mode Default group file"\
" permissions\n");
- printf(" -s --tperm=mode Default tasks file"
+ printf(" -s, --tperm=mode Default tasks file"
" permissions\n");
printf(" -t <tuid>:<tgid> Default owner of the tasks "
"file\n");
"[-s mode] [-t <tuid>:<tgid>] [-a <agid>:<auid>] "\
"-g <controllers>:<path> [-g ...]\n",
program_name);
+ fprintf(stdout, "Create control group(s)\n");
fprintf(stdout, " -a <tuid>:<tgid> Owner "\
"of the group and all its files\n");
fprintf(stdout, " -d, --dperm=mode Group "\
program_name);
else {
fprintf(stdout, "Usage: %s [-nv] [-r <name>] "\
- "[-g <controller>] [-a] <path> ...\n", program_name);
+ "[-g <controllers>] [-a] <path> ...\n", program_name);
fprintf(stdout, " or: %s [-nv] [-r <name>] "\
- "-g <controller>:<path> ...\n", program_name);
+ "-g <controllers>:<path> ...\n", program_name);
fprintf(stdout, "Print parameter(s) of given group(s).\n");
fprintf(stdout, " -a, --all "\
"Print info about all relevant controllers\n");
- fprintf(stdout, " -g <controller> "\
- "Controller which info should be displaied\n");
- fprintf(stdout, " -g <controller>:<path> "\
- "Control group whih info should be displaied\n");
+ fprintf(stdout, " -g <controllers> "\
+ "Controller which info should be displayed\n");
+ fprintf(stdout, " -g <controllers>:<path> "\
+ "Control group which info should be displayed\n");
fprintf(stdout, " -h, --help "\
"Display this help\n");
fprintf(stdout, " -n "\
if (((group_needed == 2) && (argv[optind])) ||
((group_needed != 2) && (!argv[optind]))) {
- /* mixed -g <controller>:<path> and <path> or path not set */
+ /* mixed -g <controllers>:<path> and <path> or path not set */
usage(1, argv[0]);
result = -1;
goto err;
program_name);
else {
printf("Usage: %s [-r <name=value>] <cgroup_path> ...\n"
- " or: %s --copy-from <source_cgrup_path> "
+ " or: %s --copy-from <source_cgroup_path> "
"<cgroup_path> ...\n",
program_name, program_name);
}
" try %s -h' for more information.\n",
program_name);
} else {
- fprintf(stdout, "Usage: %s [-h] [-s] [-b file] "\
- "[-w file] [-f output_file] "\
+ fprintf(stdout, "Usage: %s [-h] [-s] [-b FILE] "\
+ "[-w FILE] [-f FILE] "\
"[controller] [...]\n", program_name);
fprintf(stdout, "Generate the configuration file from "\
"the given controllers of control groups\n");
- fprintf(stdout, " -b,--blacklist file Set the blacklist"\
+ fprintf(stdout, " -b, --blacklist=FILE Set the blacklist"\
" configuration file (default %s)\n", BLACKLIST_CONF);
- fprintf(stdout, " -f,--file Redirect the output"\
+ fprintf(stdout, " -f, --file=FILE Redirect the output"\
" to output_file\n");
- fprintf(stdout, " -h,--help Display this help\n");
- fprintf(stdout, " -s,--silent Ignore all "\
+ fprintf(stdout, " -h, --help Display this help\n");
+ fprintf(stdout, " -s, --silent Ignore all "\
"warnings\n");
- fprintf(stdout, " -t,--strict Don't show the "\
+ fprintf(stdout, " -t, --strict Don't show the "\
"variables which are not on the whitelist\n");
- fprintf(stdout, " -w,--whitelist file Set the whitelist"\
+ fprintf(stdout, " -w, --whitelist=FILE Set the whitelist"\
" configuration file (don't used by default)\n");
}
}