+print_version () {
+ cat <<'EOF'
+mpdthumb.sh 0.9
+Copyright © 2021 Nick Bowler
+License GPLv3+: GNU General Public License version 3 or any later version.
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.
+EOF
+}
+
+print_usage () {
+ test $# -eq 0 || { printf '%s: ' "$argv0"; printf "$@"; }
+ printf 'Usage: %s [options] file [file ...]\n' "$argv0"
+ test $# -eq 0 || printf 'Try %s --help for more information.\n' "$argv0"
+}
+
+print_help () {
+ print_usage
+ cat <<EOF
+This is "mpdthumb": a tool to retrieve cover art thumbnails from MPD.
+
+One or more filenames may be specified. The cover art (if any) for each
+file is retrieved and scaled to the requested size. The thumbnails are
+cached locally so that subsequent lookups return results very quickly.
+
+The filenames of the generated thumbnails are printed one per line in
+the same order of the associated files specified on the command line.
+If a given file has no cover art, then a blank line is printed.
+
+Options:
+ --size=[W][xH] Specify the dimensions (in pixels) of a bounding
+ rectangle into which the image will be scaled to fit.
+ One (but not both) of the dimensions may be omitted
+ to indicate no limit in that direction. The default
+ size is x128.
+ --small Equivalent to --size=56
+ --binarylimit[=ARG]
+ If ARG is omitted or 'yes', force the use of the
+ binarylimit command to reduce the amount of data
+ transferred in the hot cache case. If ARG is 'no',
+ then the old "large offset" method is used which is
+ incompatible with newer MPD servers. The default is
+ 'auto', which queries the server to determine the
+ appropriate method.
+ --no-binarylimit Equivalent to --binarylimit=no
+ --embedded Attempt to retrieve embedded covers using readpicture.
+ This requires (and implies) --binarylimit.
+ --no-embedded Use only album-level covers. This is the default.
+ --version Print a version message and then exit.
+ --help Print this message and then exit.
+
+Report bugs to <nbowler@draconx.ca>.
+EOF
+}