On 09/17/2013 08:53 AM, Ivana Hutarova Varekova wrote:
> lssubsys: unify help output
> * add missing options to syntax row
> * change the order of options (now in alphabetical order)
> 
> Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com>

Acked-By: Jan Safranek <jsafr...@redhat.com>

> ---
> 
>  src/tools/lssubsys.c |   29 +++++++++++------------------
>  1 files changed, 11 insertions(+), 18 deletions(-)
> 
> diff --git a/src/tools/lssubsys.c b/src/tools/lssubsys.c
> index e473a5b..bd2e5d5 100644
> --- a/src/tools/lssubsys.c
> +++ b/src/tools/lssubsys.c
> @@ -37,24 +37,17 @@ static void usage(int status, const char *program_name)
>                       program_name);
>               return;
>       }
> -     fprintf(stdout, "Usage: %s [-m] [controller] [...]\n",
> -             program_name);
> -     fprintf(stdout, "Usage: %s -a [-m]\n",
> -             program_name);
> -     fprintf(stdout, "List information about given controller(s). "\
> -             "If no controller is set list information about "\
> -             "all mounted controllers.\n");
> -     fprintf(stdout, "  -h, --help                   "\
> -             "Display this help\n");
> -     fprintf(stdout, "  -m, --mount-points           "\
> -             "Display mount points\n");
> -     fprintf(stdout, "  -M, --all-mount-points       "\
> -             "Display all mount points\n");
> -     fprintf(stdout, "  -a, --all                    "\
> -             "Display information about all controllers "\
> -             "(including not mounted ones)\n");
> -     fprintf(stdout, "  -i, --hierarchies            "\
> -             "Display information about hierarchies\n");
> +     printf("Usage: %s [-i] [-m] [-M] [controller] [...]\n"\
> +             "   or: %s [-a] [-i] [-m] [-M]\n", program_name, program_name);
> +     printf("List information about given controller(s) If no controller "\
> +             "is set list information about all mounted controllers.\n");
> +     printf("  -a, --all                     Display information "\
> +             "about all controllers (including not mounted ones)\n");
> +     printf("  -h, --help                    Display this help\n");
> +     printf("  -i, --hierarchies             Display information about "\
> +             "hierarchies\n");
> +     printf("  -m, --mount-points            Display mount points\n");
> +     printf("  -M, --all-mount-points        Display all mount points\n");
>  }
>  
>  static int print_controller_mount(const char *controller,
> 
> 
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> Libcg-devel mailing list
> Libcg-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libcg-devel
> 


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to