On 07/17/2012 04:26 PM, Ivana Hutarova Varekova wrote: > add -h to parsed options > create more verbose -h output > > > Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com>
Acked-By: Jan Safranek <jsafr...@redhat.com> > --- > > src/tools/cgclear.c | 13 +++++++++++-- > 1 files changed, 11 insertions(+), 2 deletions(-) > > diff --git a/src/tools/cgclear.c b/src/tools/cgclear.c > index 9cfc684..1e00560 100644 > --- a/src/tools/cgclear.c > +++ b/src/tools/cgclear.c > @@ -33,8 +33,16 @@ static void usage(int status, const char *program_name) > " try %s -h' for more information.\n", > program_name); > } else { > - printf("%s [-e] [-l config file] [-L directory] ...\n", > - program_name); > + printf("Usage: %s [-h] [-l FILE] [-L DIR] [-e]\n", > + program_name); > + printf("Unload the cgroup filesystem\n"); > + printf(" -h, --help Display this help\n"); > + printf(" -e, --empty Remove only empty"\ > + " cgroups\n"); > + printf(" -l, --load=FILE Parse and load"\ > + "the cgroups configuration file\n"); > + printf(" -L, --load-directory=DIR Parse and load"\ > + "the cgroups configuration files from a directory\n"); > } > } > > @@ -61,6 +69,7 @@ int main(int argc, char *argv[]) > {"load", required_argument, 0, 'l' }, > {"load-directory", required_argument, 0, 'L' }, > {"only-empty", no_argument, 0, 'e' }, > + {"help", no_argument, 0, '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 > ------------------------------------------------------------------------------ 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