On 05/09/2011 10:40 AM, Ivana Hutarova Varekova wrote:
> The patch create more verbose help output of lscgroup command
> 
> 
> Signed-off-by: Ivana Hutarova Varekova <[email protected]>
Acked-By: Jan Safranek <[email protected]>

> ---
> 
>  0 files changed, 0 insertions(+), 0 deletions(-)
> 
> diff --git a/src/tools/lscgroup.c b/src/tools/lscgroup.c
> index e6b1d09..0b3e502 100644
> --- a/src/tools/lscgroup.c
> +++ b/src/tools/lscgroup.c
> @@ -45,9 +45,13 @@ static void usage(int status, const char *program_name)
>                       " try %s -h' for more information.\n",
>                       program_name);
>       } else {
> -             fprintf(stdout, "Usage: %s [<controllers>:<path>] [...]\n",
> -                     program_name);
> -             fprintf(stdout, "list all cgroups\n");
> +             fprintf(stdout, "Usage: %s [-h] [[-g] <controllers>:<path>] "\
> +                     "[...]\n", program_name);
> +             fprintf(stdout, "  -g <controllers>:<path>   Control group "\
> +                     "to be displayed (-g is optional)\n");
> +             fprintf(stdout, "  -h, --help                Display "\
> +                     "this help\n");
> +             fprintf(stdout, "List all cgroups\n");
>       }
>  }
>  
> 
> 
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network 
> management toolset available today.  Delivers lowest initial 
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Libcg-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libcg-devel


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to