e1b6086
From c6581dea1d7b7667806a7f2a47208859443f29bf Mon Sep 17 00:00:00 2001
e1b6086
From: Dalibor Pospisil <dapospis@redhat.com>
e1b6086
Date: Thu, 19 Jun 2014 12:02:27 +0200
e1b6086
Subject: [PATCH 05/14] rlHash: added option -a as alias to --algorithm
e1b6086
e1b6086
---
e1b6086
 src/infrastructure.sh | 4 ++--
e1b6086
 1 file changed, 2 insertions(+), 2 deletions(-)
e1b6086
e1b6086
diff --git a/src/infrastructure.sh b/src/infrastructure.sh
e1b6086
index 66643e3..53d7c27 100644
e1b6086
--- a/src/infrastructure.sh
e1b6086
+++ b/src/infrastructure.sh
e1b6086
@@ -378,13 +378,13 @@ Returns 0 if success.
e1b6086
 =cut
e1b6086
 
e1b6086
 rlHash() {
e1b6086
-  local GETOPT=$(getopt -q -o : -l decode,algorithm:,stdin -- "$@"); eval set -- "$GETOPT"
e1b6086
+  local GETOPT=$(getopt -q -o a: -l decode,algorithm:,stdin -- "$@"); eval set -- "$GETOPT"
e1b6086
   local decode=0 alg="$rlHashAlgorithm" stdin=0
e1b6086
   while true; do
e1b6086
     case $1 in
e1b6086
       --)          shift; break ;;
e1b6086
       --decode)    decode=1 ;;
e1b6086
-      --algorithm) shift; alg="$1" ;;
e1b6086
+      -a|--algorithm) shift; alg="$1" ;;
e1b6086
       --stdin)     stdin=1 ;;
e1b6086
     esac
e1b6086
     shift
e1b6086
-- 
e1b6086
1.9.3
e1b6086