Skip to content

Commit

Permalink
add info and details about arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmyczko committed Feb 26, 2021
1 parent b0a4788 commit 208707b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion fnt
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,17 @@ for a in $check; do
done

if [ "${1}x" = 'x' ]; then
echo "Syntax: fnt [ update | list ]"
echo "Syntax: fnt [ update | list | info ]"
echo " fnt [ install | remove | preview | search ] font"
echo
echo "update|-u updates the font package index of debian sid"
echo "list|-l lists installed fonts with glyphcount per font"
echo "info information about how many fonts can be installed"
echo "install|-i install a font"
echo "remove|-r remove a font"
echo "preview|-p preview a font"
echo "search|-s search for font"
echo
exit 0
fi

Expand All @@ -69,6 +77,11 @@ case "$1" in
curl -s "$INDEX" -o "${TMPDIR}/Packages.xz"
;;

info)
echo Information...
echo Available Fonts: $(fnt search | wc -l)
;;

list|-l)
# echo Listing...
# macOS mainly comes with *.ttc (truetype font collections, that can not be processed by otfinfo)
Expand Down

0 comments on commit 208707b

Please sign in to comment.