Help pages

This commit is contained in:
joachimschmidt557 2019-06-23 18:05:08 +02:00
parent 35200e9401
commit 0973bb4f7f
2 changed files with 30 additions and 4 deletions

15
nope
View file

@ -1,8 +1,16 @@
#!/bin/sh
usage() {
echo nope
echo opens files
cat <<EOF
nope
opens files
Usage: nope FILE
Flags:
--help, -h Displays this help
--version, -v Show version and exit
EOF
}
case "$@" in
@ -10,6 +18,9 @@ case "$@" in
usage
exit 1
;;
--version)
echo "nope version 0.1.0"
;;
*.pdf)
okular "$@" > /dev/null 2>&1 &
;;