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"
chmod +x "$2"
exit ;;
--fetch )
-f | --fetch )
FETCH=1
shift ;;
-p | -z | --prefix | --zzexe )
@ -93,16 +93,16 @@ case "$1" in
echo "Usage: appdwarf [option] [APP/FILE/FOLDER/URL] [compression options]"
echo " -a [FILE] write example 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 " --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 " -p [--prefix] [PREFIX] zzexe a file with prefix"
echo " -z [--zzexe] zzexe a file"
echo " -p, --prefix] [PREFIX] zzexe a file with prefix"
echo " -z, --zzexe zzexe a file"
echo
echo " -h, --help Print this help text"
echo " -v, --version Print the appdwarf version"; exit ;;
echo " -h, --help] Print this help text"
echo " -v, --version] Print the appdwarf version"; exit ;;
esac
if [ ! -d "$1" ]; then # directory doesn't exist, see if this is an appimage