diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2013-05-27 19:42:03 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2013-05-27 19:42:03 +0200 |
commit | 0372233331630c828d5a26e49bef82c9dbb9900d (patch) | |
tree | 258e3ae3d42e44a4e78d89f149a978f015d2caad | |
parent | 2a312234012a5b8eab31d2cf029a5a8a809fc28e (diff) | |
download | openlmi-providers-0372233331630c828d5a26e49bef82c9dbb9900d.tar.gz openlmi-providers-0372233331630c828d5a26e49bef82c9dbb9900d.tar.xz openlmi-providers-0372233331630c828d5a26e49bef82c9dbb9900d.zip |
openlmi-mof-register: Handle --help
I constantly find myself typing --help instead of -h, this is just
hardcoded in my brain. Let's support this commandline option as well.
-rwxr-xr-x | openlmi-mof-register | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openlmi-mof-register b/openlmi-mof-register index 67f1d61..d327a1e 100755 --- a/openlmi-mof-register +++ b/openlmi-mof-register @@ -150,6 +150,10 @@ while getopts "$optspec" optchar; do just-mofs) JUST_MOFS=1 ;; + help) + usage; + exit 0; + ;; *) if [ "$OPTERR" != 1 ] || [ "${optspec:0:1}" = ":" ]; then echo "Unknown option --${OPTARG}" >&2 |