[Pkg-libvirt-commits] [libguestfs] 201/384: mllib: do not show --short-options among the long options
Hilko Bengen
bengen at moszumanska.debian.org
Sun Mar 29 16:57:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit 515c3e3e73f7961d1d21b209d14b7fd7067a3b06
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.
---
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 37a547e..7a8d8a2 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -469,7 +469,7 @@ let display_short_options () =
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