@@ -41,6 +41,45 @@ while [[ "$1" != "" ]] ; do
4141 fi
4242 break
4343 ;;
44+ ' -h' |' --help' )
45+ cat << EOF
46+ RIP Docker Script 'go-docker.sh'
47+
48+ Usage: ./go-docker.sh [options] [script args] [program ars ...]
49+
50+ Overridable Environment Variables:
51+ RPXC_IMAGE="utkrobotics/rip_rpi:latest"
52+ See also: --rpxc-tag flag
53+ RPXC_SCRIPT_LOCATION="./docker/rpi/rpxc/rpxc"
54+ Location of the RPXC script used to enter and setup the rip_rpi container from the host.
55+ Location relative to this shell script.
56+ RPXC_SYSROOT="/rpxc/sysroot"
57+ Location of sysroot *inside* the docker container.
58+ Do not change unless using a compatible/different docker image.
59+ RIPPROG
60+ Uses the same values as --prog flag does. (Shown in menu.)
61+
62+ (for building containers...)
63+ RPI_DIST
64+ Sets the raspberry pi distro when building rip_rpi. (i.e. 'jessie'/'stretch')
65+ RPI_DOCKER_TAG
66+ Set the target docker tag for the rip_rpi build.
67+
68+ Options: <required> [optional]
69+ --help
70+ Display this help and exit.
71+ --prog <program selection>
72+ Select a program directly without being prompted by whiptail/dialog.
73+ --rpi [--] [command to run in container]
74+ Run the RPI emulation container directly with an optional command instead of a shell.
75+ --rpxc-tag <tag name>
76+ Specify an alternate tag (different from latest) to use for the docker repo.
77+ Used like 'utkrobotics/rip_rpi:<tag_name>'
78+ -- [anything else]
79+ Ignore flags after the '--' and pass them to the program selection.
80+ EOF
81+ exit 0
82+ ;;
4483 * )
4584 echo " Unknown option: $1 "
4685 exit 1
0 commit comments