mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-11 12:18:30 +01:00
generator: add help page
This commit is contained in:
@@ -25,6 +25,17 @@ POSITIONAL_ARGS=()
|
|||||||
TARGETS="internal noimstrv"
|
TARGETS="internal noimstrv"
|
||||||
CFLAGS="glfw opengl3 opengl2 sdl2"
|
CFLAGS="glfw opengl3 opengl2 sdl2"
|
||||||
|
|
||||||
|
help() {
|
||||||
|
cat <<EOF
|
||||||
|
Usage of generator.sh:
|
||||||
|
-t --target specify which imgui features should be generated
|
||||||
|
(default: $TARGETS)
|
||||||
|
-c --cflags specify additional gcc flags
|
||||||
|
(default: $CFLAGS
|
||||||
|
-h --help show this message and exit
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-c|--cflags)
|
-c|--cflags)
|
||||||
@@ -37,8 +48,13 @@ while [[ $# -gt 0 ]]; do
|
|||||||
shift # past argument
|
shift # past argument
|
||||||
shift # past value
|
shift # past value
|
||||||
;;
|
;;
|
||||||
|
-h|--help)
|
||||||
|
help
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
-*|--*)
|
-*|--*)
|
||||||
echo "Unknown option $1"
|
echo "Unknown option $1"
|
||||||
|
help
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Reference in New Issue
Block a user