-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathusage.sh
More file actions
24 lines (19 loc) · 761 Bytes
/
usage.sh
File metadata and controls
24 lines (19 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
usage(){
echo "`basename $0` [options]"
echo " -f arg config file"
echo " --regionFile arg "
}
# options may be followed by one colon to indicate they have a required argument
if ! options=$(getopt -u -o hf:s: -l help,regionFile:,runRangesFile:,selection:,invMass_var:,step:,baseDir:,commonCut:,index:,force -- "$@")
then
# something went wrong, getopt will put out an error message for us
exit 1
fi
set -- $options
while [ $# -gt 0 ]
do
case $1 in
-h|--help) usage; exit 0;;
esac
shift
done