From: Ivana Hutarova Varekova Date: Thu, 26 Sep 2013 09:56:33 +0000 (+0200) Subject: cgclassify: unify help output X-Git-Tag: v0.41~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b492050cbb4969ef15f866c01c9d64d166879884;p=thirdparty%2Flibcgroup.git cgclassify: unify help output cgclassify: unify help output * -g option is optional * use the alphabetical order * add -h option description Signed-off-by: Ivana Hutarova Varekova Acked-by: Dhaval Giani Acked-by: Jan Safranek --- diff --git a/src/tools/cgclassify.c b/src/tools/cgclassify.c index bb54424e..cae59b23 100644 --- a/src/tools/cgclassify.c +++ b/src/tools/cgclassify.c @@ -39,15 +39,16 @@ static void usage(int status, const char *program_name) program_name); return; } - printf("Usage: %s [-g :] "\ + printf("Usage: %s [[-g] :] "\ "[--sticky | --cancel-sticky] \n", program_name); printf("Move running task(s) to given cgroups\n"); - printf(" -g : Control group to be displayed "\ - "(-g is optional)\n"); - printf(" --sticky cgred daemon does not change "\ - "pidlist and children tasks\n"); + printf(" -h, --help Display this help\n"); + printf(" -g : Control group to be used "\ + "as target\n"); printf(" --cancel-sticky cgred daemon change pidlist "\ "and children tasks\n"); + printf(" --sticky cgred daemon does not change "\ + "pidlist and children tasks\n"); } /*