Patchwork [3/3] sstate-cache-management.sh:fix the incorrect usage of option `-d'

login
register
mail settings
Submitter Hongxu Jia
Date Feb. 26, 2013, 7:57 a.m.
Message ID <5649132673d6d4d2add07aa92beec536e35edcaa.1361864565.git.hongxu.jia@windriver.com>
Download mbox | patch
Permalink /patch/45081/
State Accepted
Commit fa0b40c233e757fe986aa45798b35b60b89c879f
Headers show

Comments

Hongxu Jia - Feb. 26, 2013, 7:57 a.m.
The description of option `-d' is not correct in useage. It is used to
remove duplicate and debug at the same time. Use option `-D' to control
debug info output and the option `-d' to flag remove duplicate.

[YOCTO #3635]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 scripts/sstate-cache-management.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/scripts/sstate-cache-management.sh b/scripts/sstate-cache-management.sh
index 90e6764..24384ef 100755
--- a/scripts/sstate-cache-management.sh
+++ b/scripts/sstate-cache-management.sh
@@ -72,7 +72,7 @@  Options:
   -v, --verbose
         explain what is being done
 
-  -d, --debug
+  -D, --debug
         show debug info, repeat for more debug info
 
 EOF
@@ -393,7 +393,7 @@  while [ -n "$1" ]; do
       verbose="-v"
       shift
         ;;
-    --debug)
+    --debug|-D)
       debug=`expr $debug + 1`
       echo "Debug level $debug"
       shift