Kaynağa Gözat

Throw usage error on empty action

Alois Mahdal 6 yıl önce
ebeveyn
işleme
8a48a4903e
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1
    0
      src/imapdomo.skel

+ 1
- 0
src/imapdomo.skel Dosyayı Görüntüle

@@ -92,6 +92,7 @@ main() {
92 92
         *)  break ;;
93 93
     esac done
94 94
     Action="$1"; shift
95
+    test -n "$Action" || usage -w "no action specified"
95 96
     debug -v Action CfgDir LogDir HeaderDir Debug CdTo
96 97
     lshandlers | grep -qw "$Action" \
97 98
      || die "no handler for action: $Action.lua in $IMAPDOMO_HOME/handlers"