classify-users: determine type of Athena accounts
[user/alex/software/my-snippets.git] / rt-merge
1 #!/bin/bash
2 # Alex Dehnert
3
4 scriptname=$0
5 status=resolved
6 usage="Usage: \"$scriptname [-h] [-s status] ticket [...]\""
7
8 while getopts "s:h" options; do
9         case $options in
10                 s ) status=$OPTARG;;
11                 h ) echo "$usage"; exit 0;;
12                 \? ) echo "$usage"
13                         exit 1;;
14                 * ) echo "$usage"
15                         exit 1;;
16         esac
17 done
18
19 shift $(expr $OPTIND - 1)
20
21 tickets=""
22
23 for ticket in "$@"; do
24     tickets="$tickets ticket/$ticket"
25 done
26
27 athrun tooltime rt edit $tickets set "status=$status"