On 05/25/2011 03:22 PM, Ivana Hutarova Varekova wrote:
> this patch unify -h|--help output.
> old version:
> $ cgget -h
> Usage: cgget [-nv] [-r<name>] [-g<controller>] [-a] <path> ...
> or: cgget [-nv] [-r<name>] -g<controller>:<path> ...
>
> new version:
> $ cgget -h
> Usage: cgget [-nv] [-r <name>] [-g <controller>] [-a] <path> ...
> or: cgget [-nv] [-r <name>] -g <controller>:<path> ...
> Print parameter(s) of given group(s).
> -a, --all Print info about all relevant
> controllers
> -g <controller> Controller which info should be
> displayed
> -g <controller>:<path> Control group which info should be displayed
> -h, --help Display this help
> -n Do not print headers
> -r, --variable <name> Define parameter to display
> -v, --values-only Print only values, not parameter names
>
>
> Signed-off-by: Ivana Hutarova Varekova <[email protected]>
Acked-By: Jan Safranek <[email protected]>
> ---
>
> src/tools/cgget.c | 23 +++++++++++++++++++----
> 1 files changed, 19 insertions(+), 4 deletions(-)
>
> diff --git a/src/tools/cgget.c b/src/tools/cgget.c
> index 5e2d7d0..edbf5ff 100644
> --- a/src/tools/cgget.c
> +++ b/src/tools/cgget.c
> @@ -38,10 +38,25 @@ static void usage(int status, const char *program_name)
> " try %s -h' for more information.\n",
> program_name);
> else {
> - fprintf(stdout, "Usage: %s [-nv] [-r<name>] "\
> - "[-g<controller>] [-a] <path> ...\n", program_name);
> - fprintf(stdout, " or: %s [-nv] [-r<name>] "\
> - "-g<controller>:<path> ...\n", program_name);
> + fprintf(stdout, "Usage: %s [-nv] [-r <name>] "\
> + "[-g <controller>] [-a] <path> ...\n", program_name);
> + fprintf(stdout, " or: %s [-nv] [-r <name>] "\
> + "-g <controller>:<path> ...\n", program_name);
> + fprintf(stdout, "Print parameter(s) of given group(s).\n");
> + fprintf(stdout, " -a, --all "\
> + "Print info about all relevant controllers\n");
> + fprintf(stdout, " -g <controller> "\
> + "Controller which info should be displayed\n");
> + fprintf(stdout, " -g <controller>:<path> "\
> + "Control group which info should be displayed\n");
> + fprintf(stdout, " -h, --help "\
> + "Display this help\n");
> + fprintf(stdout, " -n "\
> + "Do not print headers\n");
> + fprintf(stdout, " -r, --variable <name> "\
> + "Define parameter to display\n");
> + fprintf(stdout, " -v, --values-only "\
> + "Print only values, not parameter names\n");
> }
> }
>
>
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Libcg-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libcg-devel
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel