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 7fbf743..0a6b4c9 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