update usage output
This commit is contained in:
parent
824ec45c22
commit
fa08f80c28
1 changed files with 24 additions and 22 deletions
46
strm
46
strm
|
|
@ -5,28 +5,30 @@ text_bold="\e[1m"
|
||||||
text_reset="\e[0m"
|
text_reset="\e[0m"
|
||||||
|
|
||||||
function print_usage {
|
function print_usage {
|
||||||
echo "Usage: strm [OPTIONS] QUERIES ... [OPTIONS]"
|
cat <<EOF
|
||||||
echo
|
Usage: strm [OPTIONS] QUERIES ... [OPTIONS]
|
||||||
echo "Stream media files over SSH in a convenient way."
|
|
||||||
echo
|
Stream media files over SSH in a convenient way.
|
||||||
echo "OPTIONS"
|
|
||||||
echo " -h, --help Show this help message"
|
OPTIONS
|
||||||
echo " -c, --config CONFIG_FILE Path to config file (default: ~/.config/strm/strm.config)"
|
-h, --help Show this help message
|
||||||
echo " -f, --fullscreen Play video files in fullscreen"
|
-c, --config CONFIG_FILE Path to config file (default: ~/.config/strm/strm.config)
|
||||||
echo " -i, --ignore-files IGNORE_FILES Ignore given filenames"
|
-f, --fullscreen Play video files in fullscreen
|
||||||
echo " -l, --list List files instead of playing"
|
-i, --ignore-files IGNORE_FILES Ignore given filenames
|
||||||
echo " -m, --media-directories MEDIA_DIRECTORIES Use given media directories, config is ignored"
|
-l, --list List files instead of playing
|
||||||
echo " -o, --or Combine queries with a logical OR (default: AND)"
|
-m, --media-directories MEDIA_DIRECTORIES Use given media directories, config is ignored
|
||||||
echo " -p, --playback-directory DIRECTORY Use given playback directory"
|
-o, --or Combine queries with a logical OR (default: AND)
|
||||||
echo " -q, --quit TIME_IN_MINUTES Quit after a given time"
|
-p, --playback-directory DIRECTORY Use given playback directory
|
||||||
echo " -r, --remote SSH_CONNECTION_STRING Execute strm with other given arguments on remote machine (-f is set by default)"
|
-q, --quit TIME_IN_MINUTES Quit after a given time
|
||||||
echo " -s, --shuffle Play files in random order"
|
-r, --remote SSH_CONNECTION_STRING Execute strm with other given arguments on remote machine (-f is set by default)
|
||||||
echo " -t, --tidy Don't resume playback"
|
-s, --shuffle Play files in random order
|
||||||
echo
|
-t, --tidy Don't resume playback
|
||||||
echo "EXAMPLES"
|
|
||||||
echo " strm -l . # List all available files"
|
EXAMPLES
|
||||||
echo " strm Elephants Dream # Play files whose path contain 'elephants' and 'dream'"
|
strm -l . # List all available files
|
||||||
echo " strm e*phants # Play files whose path matches the glob pattern 'e*phants'"
|
strm Elephants Dream # Play files whose path contain 'elephants' and 'dream'
|
||||||
|
strm e*phants # Play files whose path matches the glob pattern 'e*phants'
|
||||||
|
EOF
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue