[Pkg-libvirt-commits] [libguestfs] 129/146: mllib: do not show --short-options among the long options
Hilko Bengen
bengen at moszumanska.debian.org
Sun Mar 29 17:01:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository libguestfs.
commit 31de3c3d0b760c9b9b01c5623ae5da64517ebb5d
Author: Pino Toscano <ptoscano at redhat.com>
Date: Fri Jan 23 14:15:09 2015 +0100
mllib: do not show --short-options among the long options
--long-options is ignored because it is only meant as aid for shell
completers, so --short-options should be too for the same reason.
(cherry picked from commit 515c3e3e73f7961d1d21b209d14b7fd7067a3b06)
---
mllib/common_utils.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
index eb7997a..fa71945 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -428,7 +428,7 @@ let long_options = ref ([] : (Arg.key * Arg.spec * Arg.doc) list)
let display_long_options () =
List.iter (
fun (arg, _, _) ->
- if string_prefix arg "--" && arg <> "--long-options" then
+ if string_prefix arg "--" && arg <> "--long-options" && arg <> "--short-options" then
printf "%s\n" arg
) !long_options;
exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list