#!/usr/bin/env dash # https://git.sr.ht/~seirdy/bwrap-scripts progname="$(basename "${0}")" help_text="Usage: $progname [OPTION...] [FILE] View a file or STDIN in w3m, sandboxed with bubblewrap. Internet access is blocked; ideal for viewing HTML emails. Options: -h, --help Print this help and exit " usage() { printf '%s' "$help_text" } # when the user passess bad args, send a msg to stderr and exit # usage: bad_option