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 &
|
||||
;;
|
||||
|
|
|
|||
19
youtube-mp3
19
youtube-mp3
|
|
@ -1,7 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
usage() {
|
||||
echo youtube-mp3
|
||||
cat <<EOF
|
||||
youtube-mp3
|
||||
adds options to youtube-dl to download as 320kbps MP3
|
||||
|
||||
Usage: youtube-mp3 URL
|
||||
|
||||
Additional flags for youtube-dl may be specified.
|
||||
EOF
|
||||
}
|
||||
|
||||
# Check for youtube-dl in path
|
||||
|
|
@ -16,4 +23,12 @@ if ! (which ffmpeg) ; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
youtube-dl --format bestaudio -x --audio-format mp3 --audio-quality 320K -k $@
|
||||
case "$@" in
|
||||
--help)
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
youtube-dl --format bestaudio -x --audio-format mp3 --audio-quality 320K -k "$@"
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue