---
fish/virt-copy-in | 13 ++++++++++++-
fish/virt-copy-out | 13 ++++++++++++-
fish/virt-tar-in | 13 ++++++++++++-
fish/virt-tar-out | 13 ++++++++++++-
4 files changed, 48 insertions(+), 4 deletions(-)
diff --git a/fish/virt-copy-in b/fish/virt-copy-in
index 76ff57f..f852c40 100755
--- a/fish/virt-copy-in
+++ b/fish/virt-copy-in
@@ -16,4 +16,15 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-exec guestfish --rw -i copy-in "$@"
+args=$@
+while [ ""x != "$1"x ] ; do
+ case $1 in
+ "-h")
+ man $(basename $0)
+ exit
+ ;;
+ esac
+ shift 1
+done
+
+exec guestfish --rw -i copy-in "$args"
diff --git a/fish/virt-copy-out b/fish/virt-copy-out
index 20475ef..eb5d774 100755
--- a/fish/virt-copy-out
+++ b/fish/virt-copy-out
@@ -16,4 +16,15 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-exec guestfish --ro -i copy-out "$@"
+args=$@
+while [ ""x != "$1"x ] ; do
+ case $1 in
+ "-h")
+ man $(basename $0)
+ exit
+ ;;
+ esac
+ shift 1
+done
+
+exec guestfish --ro -i copy-out "$args"
diff --git a/fish/virt-tar-in b/fish/virt-tar-in
index 1501b38..1211806 100755
--- a/fish/virt-tar-in
+++ b/fish/virt-tar-in
@@ -16,4 +16,15 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-exec guestfish --rw -i tar-in "$@"
+args=$@
+while [ ""x != "$1"x ] ; do
+ case $1 in
+ "-h")
+ man $(basename $0)
+ exit
+ ;;
+ esac
+ shift 1
+done
+
+exec guestfish --rw -i tar-in "$args"
diff --git a/fish/virt-tar-out b/fish/virt-tar-out
index 4d30de4..4eeb8fb 100755
--- a/fish/virt-tar-out
+++ b/fish/virt-tar-out
@@ -16,4 +16,15 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-exec guestfish --ro -i tar-out "$@"
+args=$@
+while [ ""x != "$1"x ] ; do
+ case $1 in
+ "-h")
+ man $(basename $0)
+ exit
+ ;;
+ esac
+ shift 1
+done
+
+exec guestfish --ro -i tar-out "$args"
--
1.9.3