Commit e8de57f9 authored by Chandan Singh's avatar Chandan Singh

bst-here: add usage instructions

parent 722045db
Pipeline #17660043 passed with stages
in 26 minutes and 47 seconds
......@@ -22,6 +22,25 @@
# This is a helper script for using BuildStream via Docker. See
# docs/source/install.rst for documentation.
usage() {
cat <<EOF
USAGE: $(basename "$0") [-t] [-T] [-h] [COMMAND] [ARG..]
Run a bst command in a new BuildStream contaner.
If no command is specified, an interactive shell is launched
using "/bin/bash -i".
OPTIONS:
-t Force pseudo-terminal allocation.
-T Disable pseudo-terminal allocation.
-h Print this help text and exit.
EOF
exit "$1"
}
is_tty=
if test -t 0
......@@ -29,7 +48,7 @@ then
is_tty=y
fi
while getopts tT arg
while getopts tTh arg
do
case $arg in
T)
......@@ -38,6 +57,11 @@ do
t)
is_tty=y
;;
h)
usage 0
;;
\?)
usage 1
esac
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment