From fa08f80c28adb0d598078c3e6f9c8c68b82249ee Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Sun, 12 Sep 2021 14:53:00 +0200 Subject: [PATCH] update usage output --- strm | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/strm b/strm index 0c7b8ec..f039a82 100755 --- a/strm +++ b/strm @@ -5,28 +5,30 @@ text_bold="\e[1m" text_reset="\e[0m" function print_usage { - echo "Usage: strm [OPTIONS] QUERIES ... [OPTIONS]" - echo - echo "Stream media files over SSH in a convenient way." - echo - echo "OPTIONS" - echo " -h, --help Show this help message" - echo " -c, --config CONFIG_FILE Path to config file (default: ~/.config/strm/strm.config)" - echo " -f, --fullscreen Play video files in fullscreen" - echo " -i, --ignore-files IGNORE_FILES Ignore given filenames" - echo " -l, --list List files instead of playing" - echo " -m, --media-directories MEDIA_DIRECTORIES Use given media directories, config is ignored" - echo " -o, --or Combine queries with a logical OR (default: AND)" - echo " -p, --playback-directory DIRECTORY Use given playback directory" - echo " -q, --quit TIME_IN_MINUTES Quit after a given time" - echo " -r, --remote SSH_CONNECTION_STRING Execute strm with other given arguments on remote machine (-f is set by default)" - echo " -s, --shuffle Play files in random order" - echo " -t, --tidy Don't resume playback" - echo - echo "EXAMPLES" - echo " strm -l . # List all available files" - echo " strm Elephants Dream # Play files whose path contain 'elephants' and 'dream'" - echo " strm e*phants # Play files whose path matches the glob pattern 'e*phants'" + cat <