Sfoglia il codice sorgente

Print usage on unknown argument

Alois Mahdal 10 anni fa
parent
commit
2f331848e6
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      bin/saturnin-push

+ 1
- 0
bin/saturnin-push Vedi File

11
     -o|--order)     ORDER=$2;           shift 2;    ;;
11
     -o|--order)     ORDER=$2;           shift 2;    ;;
12
     -h|--help)      usage;                          ;;
12
     -h|--help)      usage;                          ;;
13
     "")             break                           ;;
13
     "")             break                           ;;
14
+    -*)             usage;                          ;;
14
     *)              hosts="$1"; shift;              ;;
15
     *)              hosts="$1"; shift;              ;;
15
 esac done
16
 esac done
16
 
17