Project

General

Profile

Revision 15ed27d8

Added by Julien Enselme over 9 years ago

Use getopts to print help and to parse script arguments.

View differences:

bin/d7-all-drush.sh
1 1
#!/bin/sh
2 2

  
3

  
4
help='d7-all-drush.sh drush_arguments'
5

  
6
usage() {
7
    echo "${help}"
8
}
9
. /home/assos/bin/print-help-if-required.sh
10

  
11

  
3 12
. /home/assos/bin/scripts-config.sh
4 13
. scripts-utils.sh
5 14

  
6
help="# ARGS: drush_command"
7 15

  
8 16
check_arguments "$#" 1 "${help}"
9 17

  

Also available in: Unified diff