function 7za --wraps 'bsdtar' --description "Emulate 7za with bsdtar" if test (count $argv) -lt 1 echo "Missing argument." return 1 end if not check_install 'bsdtar' 'libarchive' echo "Can't find bsdtar." return 1 end command bsdtar -xf "$argv[-1]" end