small refactor for simplification
authorIan Kelling <ian@iankelling.org>
Mon, 5 Sep 2016 06:52:14 +0000 (23:52 -0700)
committerIan Kelling <ian@iankelling.org>
Mon, 5 Sep 2016 06:52:14 +0000 (23:52 -0700)
cedit

diff --git a/cedit b/cedit
index 7fbf7439338b159685d527cbb32ea5c191bbab76..0a6b4c938a74e9d79fa212d9bc21e852b1f46c0a 100755 (executable)
--- a/cedit
+++ b/cedit
@@ -29,13 +29,10 @@ section. cedit is short for config edit.
     local verbose=false
 
     case $1 in
+        -v) verbose=true; shift ;;
         -h|--help) echo "$help"; return ;;
     esac
 
-    if [[ $1 == -v ]]; then
-        verbose=true
-        shift
-    fi
     if (( $# == 2 )); then
         name=": $1"
         shift