cgclassify: do more verbose help output, accept --help option
Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com> --- src/tools/cgclassify.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/tools/cgclassify.c b/src/tools/cgclassify.c index 3f19a4d..c136c83 100644 --- a/src/tools/cgclassify.c +++ b/src/tools/cgclassify.c @@ -38,10 +38,17 @@ static void usage(int status, const char *program_name) " try %s -h' for more information.\n", program_name); } else { - printf("usage is %s"\ + printf("Usage: %s"\ "[-g <controllers>:<path>]" "[--sticky | --cancel-sticky] <list of pids>\n", program_name); + printf("Move running task(s) to given cgroups\n"); + printf(" -g <controllers>:<path> Control group "\ + "to be displayed (-g is optional)\n"); + printf(" --sticky cgred daemon "\ + "does not change pidlist and children tasks\n"); + printf(" --cancel-sticky cgred daemon "\ + "change pidlist and children tasks\n"); } } @@ -109,6 +116,7 @@ out: static struct option longopts[] = { {"sticky", no_argument, NULL, 's'}, {"cancel-sticky", no_argument, NULL, 'u'}, + {"help", no_argument, NULL, 'h'}, {0, 0, 0, 0} }; ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel