diff options
author | simona | 2018-11-25 17:38:57 +0100 |
---|---|---|
committer | simona | 2018-11-25 17:38:57 +0100 |
commit | a4d3b0833d6f983216fffe6f00ce756606b688c8 (patch) | |
tree | 9865fe89967eda7243381ae7a7ea492cf8f9b530 /image-mount | |
parent | b583ae52f4aa6be344ff073d0e19675b24be69d5 (diff) | |
download | aur-a4d3b0833d6f983216fffe6f00ce756606b688c8.tar.gz |
better -h help text
Diffstat (limited to 'image-mount')
-rwxr-xr-x | image-mount | 42 |
1 files changed, 32 insertions, 10 deletions
diff --git a/image-mount b/image-mount index a3ea6ea3c25c..4c526e072f12 100755 --- a/image-mount +++ b/image-mount @@ -49,16 +49,38 @@ allow_formats_iso="iso nrg bin img mdf" allow_formats_crypto="tcrypt plain luks luks1 luks2 loopaes" if [[ $1 == "-h" || $1 == "--help" ]] ; then - echo "Sintax 1: image-mount [--help|-h]" - echo "Sintax 2: image-mount [path/]file-name.ext] [format | part#] [mount-path | part#] [--force-iso-stdmount]" - echo " --force-iso-stdmount -> forse in iso sudo mount 'mount -o loop' instead 'fuseiso'" - echo "Warning 1: part# in in format 0-9 with one integer value" - echo "Warning 2: format must be explicily specified if file extension do not say itself the correct format." - echo "Warning 3: all parameters are case sensitive." - echo "Default: image-mount image.raw raw 0 \${HOME}/mount/image" - echo "Minimal: image-mount file.ext" - echo "Typical: image-mount file.ext 2" - echo "Allowed formats: ${allow_formats} ${allow_formats_iso} ${allow_formats_crypto} sqhashfs" + cat << EOF +image-mount command help + +Usage + image-mount [--help|-h]" + image-mount [path/]file-name.ext] [format | part#] [mount-path | part#] [--force-iso-stdmount] + --force-iso-stdmount -> force in iso sudo mount 'mount -o loop' instead 'fuseiso' + +Warnings + 1) part# in in format 0-9 with one integer value + 2) format must be explicily specified if file extension do not say itself the correct format. + 3) all parameters are case sensitive. + +Default pars: + image-mount image.raw raw 0 \${HOME}/mount/image +Minimal usate: + image-mount file.ext +Common usage: + image-mount file.ext 2 + +Full allowed format list (with 'more partitions inside' supported) +---------------------------------------------------------------------------------------------------- +Virtual images allowed ('qemu' for this function package required): + ${allow_formats} +Iso images (fuse standard mount or optional 'fuseiso' package required): + ${allow_formats_iso} +Crypto images ('cryptsetup' for this function package is required): + ${allow_formats_crypto} +Squash readonly file (can ben modified, saved on umount) (package 'squashfs-tools' required): + sqhashfs +EOF + exit 0 fi |