summaryrefslogtreecommitdiffstats
path: root/openlmi-mof-register
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2013-05-27 19:42:03 +0200
committerTomas Bzatek <tbzatek@redhat.com>2013-05-27 19:42:03 +0200
commit0372233331630c828d5a26e49bef82c9dbb9900d (patch)
tree258e3ae3d42e44a4e78d89f149a978f015d2caad /openlmi-mof-register
parent2a312234012a5b8eab31d2cf029a5a8a809fc28e (diff)
downloadopenlmi-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.
Diffstat (limited to 'openlmi-mof-register')
-rwxr-xr-xopenlmi-mof-register4
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