From ce144c4d7af5bcae1646a84e70362655e0572081 Mon Sep 17 00:00:00 2001 From: Maros Zatko Date: Fri, 6 Feb 2015 14:11:13 +0100 Subject: [PATCH] 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 76ff57f73..d1be1b20f 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 20475ef48..2648a4d34 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 1501b3848..dca1bbed4 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 4d30de4ca..4a83e4010 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 "$@"