From b492050cbb4969ef15f866c01c9d64d166879884 Mon Sep 17 00:00:00 2001 From: Ivana Hutarova Varekova Date: Thu, 26 Sep 2013 11:56:33 +0200 Subject: [PATCH] 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 --- src/tools/cgclassify.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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"); } /* -- 2.47.2