appdwarf: short fetch option, better help

This commit is contained in:
Phantop 2024-03-12 13:40:25 -04:00
parent 86cc5317c1
commit f180a2962d
1 changed files with 7 additions and 7 deletions

View File

@ -81,7 +81,7 @@ case "$1" in
mv "$tmp" "$2" mv "$tmp" "$2"
chmod +x "$2" chmod +x "$2"
exit ;; exit ;;
--fetch ) -f | --fetch )
FETCH=1 FETCH=1
shift ;; shift ;;
-p | -z | --prefix | --zzexe ) -p | -z | --prefix | --zzexe )
@ -93,16 +93,16 @@ case "$1" in
echo "Usage: appdwarf [option] [APP/FILE/FOLDER/URL] [compression options]" echo "Usage: appdwarf [option] [APP/FILE/FOLDER/URL] [compression options]"
echo " -a [FILE] write example AppRun file" echo " -a [FILE] write example AppRun file"
echo " -b [FILE] write bin subdir AppRun file" echo " -b [FILE] write bin subdir AppRun file"
echo " -d [--decompress] [FILE] decompress a compressed program" echo " -d, --decompress [FILE] decompress a compressed program"
echo echo
echo " --bundle [path/to/dwarfs] bundle dwarfs with the appdwarf image" echo " --bundle [path/to/dwarfs] bundle dwarfs with the appdwarf image"
echo " --fetch only fetch a remote AppImage" echo " -f, --fetch only fetch a remote AppImage"
echo echo
echo " -p [--prefix] [PREFIX] zzexe a file with prefix" echo " -p, --prefix] [PREFIX] zzexe a file with prefix"
echo " -z [--zzexe] zzexe a file" echo " -z, --zzexe zzexe a file"
echo echo
echo " -h, --help Print this help text" echo " -h, --help] Print this help text"
echo " -v, --version Print the appdwarf version"; exit ;; echo " -v, --version] Print the appdwarf version"; exit ;;
esac esac
if [ ! -d "$1" ]; then # directory doesn't exist, see if this is an appimage if [ ! -d "$1" ]; then # directory doesn't exist, see if this is an appimage