virt-copy, virt-tar: show help for --help

This commit is contained in:
Maros Zatko
2015-02-06 14:11:13 +01:00
committed by Richard W.M. Jones
parent 5a445c2e40
commit ce144c4d7a
4 changed files with 32 additions and 0 deletions

View File

@@ -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 "$@"

View File

@@ -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 "$@"

View File

@@ -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 "$@"

View File

@@ -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 "$@"