[Pkg-libvirt-commits] [libguestfs] 358/384: virt-copy, virt-tar: show help for --help

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:59:23 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 ce144c4d7af5bcae1646a84e70362655e0572081
Author: Maros Zatko <mzatko at redhat.com>
Date:   Fri Feb 6 14:11:13 2015 +0100

    virt-copy, virt-tar: show help for --help
---
 fish/virt-copy-in  | 8 ++++++++
 fish/virt-copy-out | 8 ++++++++
 fish/virt-tar-in   | 8 ++++++++
 fish/virt-tar-out  | 8 ++++++++
 4 files changed, 32 insertions(+)

diff --git a/fish/virt-copy-in b/fish/virt-copy-in
index 76ff57f..d1be1b2 100755
--- a/fish/virt-copy-in
+++ b/fish/virt-copy-in
@@ -16,4 +16,12 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+for arg in $@; do
+    case $arg in
+        "--help")
+            exec man $(basename "$0")
+            ;;
+    esac
+done
+
 exec guestfish --rw -i copy-in "$@"
diff --git a/fish/virt-copy-out b/fish/virt-copy-out
index 20475ef..2648a4d 100755
--- a/fish/virt-copy-out
+++ b/fish/virt-copy-out
@@ -16,4 +16,12 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+for arg in $@; do
+    case $arg in
+        "--help")
+            exec man $(basename "$0")
+            ;;
+    esac
+done
+
 exec guestfish --ro -i copy-out "$@"
diff --git a/fish/virt-tar-in b/fish/virt-tar-in
index 1501b38..dca1bbe 100755
--- a/fish/virt-tar-in
+++ b/fish/virt-tar-in
@@ -16,4 +16,12 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+for arg in $@; do
+    case $arg in
+        "--help")
+            exec man $(basename "$0")
+            ;;
+    esac
+done
+
 exec guestfish --rw -i tar-in "$@"
diff --git a/fish/virt-tar-out b/fish/virt-tar-out
index 4d30de4..4a83e40 100755
--- a/fish/virt-tar-out
+++ b/fish/virt-tar-out
@@ -16,4 +16,12 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+for arg in $@; do
+    case $arg in
+        "--help")
+            exec man $(basename "$0")
+            ;;
+    esac
+done
+
 exec guestfish --ro -i tar-out "$@"

-- 
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