From: Ivana Hutarova Varekova Date: Wed, 18 Jul 2012 19:03:04 +0000 (+0200) Subject: cgset: more verbose -h output X-Git-Tag: v0.41~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a08bd3c2e7bbdaecc3a99f48cf20176a1316e5ff;p=thirdparty%2Flibcgroup.git cgset: more verbose -h output create more verbose -h output similar as the other libcgroup tools fix man page typo Signed-off-by: Ivana Hutarova Varekova Acked-by: Jan Safranek --- diff --git a/doc/man/cgset.1 b/doc/man/cgset.1 index 8ca89186..41abc30c 100644 --- a/doc/man/cgset.1 +++ b/doc/man/cgset.1 @@ -26,7 +26,7 @@ the value which should be written to that file. This parameter can be used multiple times. .TP -.B -copy-from +.B --copy-from defines the name of the cgroup whose parameters will be copied to the input cgroup. diff --git a/src/tools/cgset.c b/src/tools/cgset.c index 8f1af524..614477e3 100644 --- a/src/tools/cgset.c +++ b/src/tools/cgset.c @@ -66,6 +66,11 @@ static void usage(int status, const char *program_name) " or: %s --copy-from " " ...\n", program_name, program_name); + printf("Set the parameters of given cgroup(s)\n"); + printf(" -r, --variable "\ + "Define parameter to display\n"); + printf(" --copy-from "\ + "Control group whose parameters will be copied\n"); } }