Help pages
This commit is contained in:
parent
35200e9401
commit
0973bb4f7f
2 changed files with 30 additions and 4 deletions
15
nope
15
nope
|
|
@ -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 &
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue