From 6d475a2833b44f36705794370cf85c11b5917c75 Mon Sep 17 00:00:00 2001 From: g0t mi1k Date: Thu, 14 Oct 2021 19:08:06 +0000 Subject: [PATCH] Add --help --- .getopt.sh | 5 +++-- build.sh | 13 +++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.getopt.sh b/.getopt.sh index 073750f..96eedc6 100644 --- a/.getopt.sh +++ b/.getopt.sh @@ -5,6 +5,7 @@ # -v | --verbose # -D | --debug # -s | --salt +# -h | --help # --installer # --live # --variant @@ -14,5 +15,5 @@ # --no-clean # --clean -BUILD_OPTS_SHORT="d:pa:vDs" -BUILD_OPTS_LONG="distribution:,proposed-updates,arch:,verbose,debug,salt,installer,live,variant:,version:,subdir:,get-image-path,no-clean,clean" +BUILD_OPTS_SHORT="d:pa:vDsh" +BUILD_OPTS_LONG="distribution:,proposed-updates,arch:,verbose,debug,salt,installer,live,variant:,version:,subdir:,get-image-path,no-clean,clean,help" diff --git a/build.sh b/build.sh index e95a81d..8864700 100755 --- a/build.sh +++ b/build.sh @@ -124,6 +124,18 @@ clean() { run_and_log $SUDO rm -rf "$(pwd)/simple-cdd/debian-cd" } +print_help() { + echo "Usage: $0 [