Add help flag -h

This commit is contained in:
Paper 2020-02-04 17:52:45 +01:00
parent 5e4246f848
commit d782c9353e
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,6 @@
#!/bin/sh -e
# TODO: try to get lang from the original document since we download it anyway
# TODO: switch for not downloading the original too
# TODO: switch for custom language
# TODO: support multiple URLs in one command
# TODO: optionally minify HTML
# TODO: download required resources too - images...
@ -34,6 +33,10 @@ while true; do
shift
shift
;;
-h)
usage
exit 0
;;
*)
url="$1"
break