]> xenbits.xensource.com Git - xen.git/commit
xl: Command line: Support -h everywhere
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 17 Jul 2015 17:00:49 +0000 (18:00 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 21 Jul 2015 15:03:17 +0000 (16:03 +0100)
commit7c60c2da3160766a265cb84c7411ff2c9cbd8d0b
treef2c795133481dc323ab512b1cb5ad0c124d0b041
parentfb38a4e456b9365d0c60be65b6bdbad3aed75a60
xl: Command line: Support -h everywhere

xl subcommands ought all to take -h.  def_getopt and hence
SWITCH_FOREACH_OPT already handles 'h' by calling helpstr.  None of
the call sites see the 'h'.

In this patch:

 * Change SWITCH_FOREACH_OPT to always add a "h" to the short opts
   string, using string concatenation.

 * Remove the now-redundant h's from some existing option strings.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/xl_cmdimpl.c