diff options
author | P. J. McDermott <pjm@nac.net> | 2012-07-31 21:34:03 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-07-31 21:34:03 (EDT) |
commit | a95c249fbc6b556270d91b685b980f0cec986b23 (patch) | |
tree | bf49d920975a1ef26bcfbd15eb4dbcbeee6d0a67 /src/opkbuild.sh | |
parent | e93df698ad3c5172cf1157a8c72978b427fc0aa8 (diff) |
Add oh_usage and support oh-* utils in oh_help.
Diffstat (limited to 'src/opkbuild.sh')
-rw-r--r-- | src/opkbuild.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh index 94bc6c7..7fdd33d 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -77,6 +77,10 @@ main() oh_locale_set get_options + if [ "${#}" -ne 0 ]; then + oh_usage + exit 1 + fi test_uid0_cmd @@ -172,6 +176,7 @@ get_options() ;; esac done + shift $(($OPTIND - 1)) # Set default option values. [ -z "${OPT_BUILD}" ] && OPT_BUILD=full |